Package com.sun.xml.xsom.impl
Class DeclarationImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.DeclarationImpl
-
- All Implemented Interfaces:
XSComponent,XSDeclaration
- Direct Known Subclasses:
AttributeDeclImpl,AttributesHolder,ElementDecl,ModelGroupDeclImpl,NotationImpl,SchemaSetImpl.AnySimpleType,SchemaSetImpl.AnyType,SimpleTypeImpl
abstract class DeclarationImpl extends ComponentImpl implements XSDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private booleananonymousprivate java.lang.Stringnameprivate java.lang.StringtargetNamespace-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Constructor Description DeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator loc, ForeignAttributesImpl fa, java.lang.String _targetNamespace, java.lang.String _name, boolean _anonymous)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetName()Gets the (local) name of the declaration.java.lang.StringgetTargetNamespace()Target namespace to which this component belongs.booleanisAnonymous()Deprecated.booleanisGlobal()Returns true if this declaration is a global declaration.booleanisLocal()Returns true if this declaration is a local declaration.-
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
-
-
-
Constructor Detail
-
DeclarationImpl
DeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator loc, ForeignAttributesImpl fa, java.lang.String _targetNamespace, java.lang.String _name, boolean _anonymous)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:XSDeclarationGets the (local) name of the declaration.- Specified by:
getNamein interfaceXSDeclaration- Returns:
- null if this component is anonymous.
-
getTargetNamespace
public java.lang.String getTargetNamespace()
Description copied from interface:XSDeclarationTarget namespace to which this component belongs.""is used to represent the default no namespace.- Specified by:
getTargetNamespacein interfaceXSDeclaration
-
isAnonymous
public boolean isAnonymous()
Deprecated.- Specified by:
isAnonymousin interfaceXSDeclaration
-
isGlobal
public final boolean isGlobal()
Description copied from interface:XSDeclarationReturns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.- Specified by:
isGlobalin interfaceXSDeclaration
-
isLocal
public final boolean isLocal()
Description copied from interface:XSDeclarationReturns true if this declaration is a local declaration. Equivalent of!isGlobal()- Specified by:
isLocalin interfaceXSDeclaration
-
-