abstract class DeclarationImpl extends ComponentImpl implements XSDeclaration
Modifier and Type | Field and Description |
---|---|
private boolean |
anonymous |
private java.lang.String |
name |
private java.lang.String |
targetNamespace |
ownerDocument
Constructor and Description |
---|
DeclarationImpl(SchemaDocumentImpl owner,
AnnotationImpl _annon,
org.xml.sax.Locator loc,
ForeignAttributesImpl fa,
java.lang.String _targetNamespace,
java.lang.String _name,
boolean _anonymous) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the (local) name of the declaration.
|
java.lang.String |
getTargetNamespace()
Target namespace to which this component belongs.
|
boolean |
isAnonymous()
Deprecated.
|
boolean |
isGlobal()
Returns true if this declaration is a global declaration.
|
boolean |
isLocal()
Returns true if this declaration is a local declaration.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
private final java.lang.String name
private final java.lang.String targetNamespace
private final boolean anonymous
DeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator loc, ForeignAttributesImpl fa, java.lang.String _targetNamespace, java.lang.String _name, boolean _anonymous)
public java.lang.String getName()
XSDeclaration
getName
in interface XSDeclaration
public java.lang.String getTargetNamespace()
XSDeclaration
""
is used to represent the default no namespace.getTargetNamespace
in interface XSDeclaration
public boolean isAnonymous()
isAnonymous
in interface XSDeclaration
public final boolean isGlobal()
XSDeclaration
isGlobal
in interface XSDeclaration
public final boolean isLocal()
XSDeclaration
!isGlobal()
isLocal
in interface XSDeclaration