public class JBossXSNamespaceItem extends Object implements org.apache.xerces.xs.XSNamespaceItem
Constructor and Description |
---|
JBossXSNamespaceItem(String ns,
org.jboss.xb.binding.NamespaceRegistry namespaceRegistry,
boolean qualifiedElements) |
Modifier and Type | Method and Description |
---|---|
void |
addDocumentLocation(String uri) |
void |
addDocumentLocations(List<String> uri) |
void |
addXSAnnotation(org.apache.xerces.xs.XSAnnotation xa)
Add an XSAnnotation
|
void |
addXSAttributeDeclaration(org.apache.xerces.xs.XSAttributeDeclaration att)
Add an XSAttributeDeclaration
|
void |
addXSElementDeclaration(org.apache.xerces.xs.XSElementDeclaration el)
Add an XSElementDeclaration
|
void |
addXSTypeDefinition(org.apache.xerces.xs.XSTypeDefinition xsType)
Add an XSTypeDefinition
|
org.apache.xerces.xs.XSObjectList |
getAnnotations()
[annotations]: a set of annotations if it exists, otherwise an empty
XSObjectList . |
org.apache.xerces.xs.XSAttributeDeclaration |
getAttributeDeclaration(String name)
Convenience method.
|
org.apache.xerces.xs.XSAttributeGroupDefinition |
getAttributeGroup(String name)
Convenience method.
|
org.apache.xerces.xs.XSNamedMap |
getComponents(short objectType)
[schema components]: a list of top-level components, i.e.
|
org.apache.xerces.xs.StringList |
getDocumentLocations()
[document location] - a list of location URIs for the documents that
contributed to the
XSModel . |
org.apache.xerces.xs.XSElementDeclaration |
getElementDeclaration(String name)
Convenience method.
|
org.apache.xerces.xs.XSModelGroupDefinition |
getModelGroupDefinition(String name)
Convenience method.
|
org.jboss.xb.binding.NamespaceRegistry |
getNamespaceRegistry() |
org.apache.xerces.xs.XSNotationDeclaration |
getNotationDeclaration(String name)
Convenience method.
|
String |
getSchemaNamespace()
[schema namespace]: A namespace name or
null if absent. |
org.apache.xerces.xs.XSTypeDefinition |
getTypeDefinition(String name)
Convenience method.
|
boolean |
isQualifiedElements() |
void |
merge(JBossXSNamespaceItem nsi) |
void |
removeXSElementDeclaration(org.apache.xerces.xs.XSElementDeclaration xel)
Delete a XSTypeDefinition
|
void |
removeXSTypeDefinition(org.apache.xerces.xs.XSTypeDefinition xst)
Delete a XSTypeDefinition
|
void |
setNamespaceRegistry(org.jboss.xb.binding.NamespaceRegistry namespaceRegistry) |
void |
setQualifiedElements(boolean qualifiedElements) |
String |
toString()
Overrides the toString method
|
public JBossXSNamespaceItem(String ns, org.jboss.xb.binding.NamespaceRegistry namespaceRegistry, boolean qualifiedElements)
public String getSchemaNamespace()
null
if absent.getSchemaNamespace
in interface org.apache.xerces.xs.XSNamespaceItem
public org.apache.xerces.xs.XSNamedMap getComponents(short objectType)
getComponents
in interface org.apache.xerces.xs.XSNamespaceItem
objectType
- The type of the declaration, i.e.
ELEMENT_DECLARATION
. Note that
XSTypeDefinition.SIMPLE_TYPE
and
XSTypeDefinition.COMPLEX_TYPE
can also be used as the
objectType
to retrieve only complex types or simple
types, instead of all types.objectType
or an empty XSNamedMap
if no
such definitions exist.public org.apache.xerces.xs.XSObjectList getAnnotations()
XSObjectList
.getAnnotations
in interface org.apache.xerces.xs.XSNamespaceItem
public org.apache.xerces.xs.XSElementDeclaration getElementDeclaration(String name)
getElementDeclaration
in interface org.apache.xerces.xs.XSNamespaceItem
name
- The name of the declaration.null
if such a
declaration does not exist.public org.apache.xerces.xs.XSAttributeDeclaration getAttributeDeclaration(String name)
getAttributeDeclaration
in interface org.apache.xerces.xs.XSNamespaceItem
name
- The name of the declaration.null
if such
a declaration does not exist.public org.apache.xerces.xs.XSTypeDefinition getTypeDefinition(String name)
getTypeDefinition
in interface org.apache.xerces.xs.XSNamespaceItem
name
- The name of the definition.XSTypeDefinition
or null
if such
a definition does not exist.public org.apache.xerces.xs.XSAttributeGroupDefinition getAttributeGroup(String name)
getAttributeGroup
in interface org.apache.xerces.xs.XSNamespaceItem
name
- The name of the definition.null
if
such a definition does not exist.public org.apache.xerces.xs.XSModelGroupDefinition getModelGroupDefinition(String name)
getModelGroupDefinition
in interface org.apache.xerces.xs.XSNamespaceItem
name
- The name of the definition.null
if such a definition does not exist.public org.apache.xerces.xs.XSNotationDeclaration getNotationDeclaration(String name)
getNotationDeclaration
in interface org.apache.xerces.xs.XSNamespaceItem
name
- The name of the declaration.null
if such
a declaration does not exist.public org.apache.xerces.xs.StringList getDocumentLocations()
XSModel
.getDocumentLocations
in interface org.apache.xerces.xs.XSNamespaceItem
public void addDocumentLocation(String uri)
public void addXSAnnotation(org.apache.xerces.xs.XSAnnotation xa)
public void addXSAttributeDeclaration(org.apache.xerces.xs.XSAttributeDeclaration att)
public void addXSElementDeclaration(org.apache.xerces.xs.XSElementDeclaration el)
el
- public void addXSTypeDefinition(org.apache.xerces.xs.XSTypeDefinition xsType)
xsType
- public void merge(JBossXSNamespaceItem nsi)
public void removeXSTypeDefinition(org.apache.xerces.xs.XSTypeDefinition xst)
xst
- public void removeXSElementDeclaration(org.apache.xerces.xs.XSElementDeclaration xel)
xst
- public boolean isQualifiedElements()
public void setQualifiedElements(boolean qualifiedElements)
public org.jboss.xb.binding.NamespaceRegistry getNamespaceRegistry()
public void setNamespaceRegistry(org.jboss.xb.binding.NamespaceRegistry namespaceRegistry)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.