public class JBossXSNamespaceItem extends Object implements 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(XSAnnotation xa)
Add an XSAnnotation
|
void |
addXSAttributeDeclaration(XSAttributeDeclaration att)
Add an XSAttributeDeclaration
|
void |
addXSElementDeclaration(XSElementDeclaration el)
Add an XSElementDeclaration
|
void |
addXSTypeDefinition(XSTypeDefinition xsType)
Add an XSTypeDefinition
|
XSObjectList |
getAnnotations()
[annotations]: a set of annotations if it exists, otherwise an empty
XSObjectList . |
XSAttributeDeclaration |
getAttributeDeclaration(String name)
Convenience method.
|
XSAttributeGroupDefinition |
getAttributeGroup(String name)
Convenience method.
|
XSNamedMap |
getComponents(short objectType)
[schema components]: a list of top-level components, i.e.
|
StringList |
getDocumentLocations()
[document location] - a list of location URIs for the documents that
contributed to the
XSModel . |
XSElementDeclaration |
getElementDeclaration(String name)
Convenience method.
|
XSModelGroupDefinition |
getModelGroupDefinition(String name)
Convenience method.
|
org.jboss.xb.binding.NamespaceRegistry |
getNamespaceRegistry() |
XSNotationDeclaration |
getNotationDeclaration(String name)
Convenience method.
|
String |
getSchemaNamespace()
[schema namespace]: A namespace name or
null if absent. |
XSTypeDefinition |
getTypeDefinition(String name)
Convenience method.
|
boolean |
isQualifiedElements() |
void |
merge(JBossXSNamespaceItem nsi) |
void |
removeXSElementDeclaration(XSElementDeclaration xel)
Delete a XSTypeDefinition
|
void |
removeXSTypeDefinition(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 XSNamespaceItem
public XSNamedMap getComponents(short objectType)
getComponents
in interface 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 XSObjectList getAnnotations()
XSObjectList
.getAnnotations
in interface XSNamespaceItem
public XSElementDeclaration getElementDeclaration(String name)
getElementDeclaration
in interface XSNamespaceItem
name
- The name of the declaration.null
if such a
declaration does not exist.public XSAttributeDeclaration getAttributeDeclaration(String name)
getAttributeDeclaration
in interface XSNamespaceItem
name
- The name of the declaration.null
if such
a declaration does not exist.public XSTypeDefinition getTypeDefinition(String name)
getTypeDefinition
in interface XSNamespaceItem
name
- The name of the definition.XSTypeDefinition
or null
if such
a definition does not exist.public XSAttributeGroupDefinition getAttributeGroup(String name)
getAttributeGroup
in interface XSNamespaceItem
name
- The name of the definition.null
if
such a definition does not exist.public XSModelGroupDefinition getModelGroupDefinition(String name)
getModelGroupDefinition
in interface XSNamespaceItem
name
- The name of the definition.null
if such a definition does not exist.public XSNotationDeclaration getNotationDeclaration(String name)
getNotationDeclaration
in interface XSNamespaceItem
name
- The name of the declaration.null
if such
a declaration does not exist.public StringList getDocumentLocations()
XSModel
.getDocumentLocations
in interface XSNamespaceItem
public void addDocumentLocation(String uri)
public void addXSAnnotation(XSAnnotation xa)
public void addXSAttributeDeclaration(XSAttributeDeclaration att)
public void addXSElementDeclaration(XSElementDeclaration el)
el
- public void addXSTypeDefinition(XSTypeDefinition xsType)
xsType
- public void merge(JBossXSNamespaceItem nsi)
public void removeXSTypeDefinition(XSTypeDefinition xst)
xst
- public void removeXSElementDeclaration(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 © 2013 JBoss by Red Hat. All Rights Reserved.