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
-
Field Summary
FieldsFields inherited from class ComponentImpl
ownerDocument -
Constructor Summary
ConstructorsConstructorDescriptionDeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa, String _targetNamespace, String _name, boolean _anonymous) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the (local) name of the declaration.Target namespace to which this component belongs.booleanDeprecated.final booleanisGlobal()Returns true if this declaration is a global declaration.final booleanisLocal()Returns true if this declaration is a local declaration.Methods inherited from class ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
Field Details
-
name
-
targetNamespace
-
anonymous
private final boolean anonymous
-
-
Constructor Details
-
DeclarationImpl
DeclarationImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl fa, String _targetNamespace, String _name, boolean _anonymous)
-
-
Method Details
-
getName
Description copied from interface:XSDeclarationGets the (local) name of the declaration.- Specified by:
getNamein interfaceXSDeclaration- Returns:
- null if this component is anonymous.
-
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
-
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
-