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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visitprivate 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()
XSDeclarationgetName in interface XSDeclarationpublic java.lang.String getTargetNamespace()
XSDeclaration"" is used to represent the default no namespace.getTargetNamespace in interface XSDeclarationpublic boolean isAnonymous()
isAnonymous in interface XSDeclarationpublic final boolean isGlobal()
XSDeclarationisGlobal in interface XSDeclarationpublic final boolean isLocal()
XSDeclaration!isGlobal()isLocal in interface XSDeclaration