Package com.sun.xml.xsom
Interface XSDeclaration
- All Superinterfaces:
XSComponent
- All Known Subinterfaces:
XSAttContainer
,XSAttGroupDecl
,XSAttributeDecl
,XSComplexType
,XSElementDecl
,XSListSimpleType
,XSModelGroupDecl
,XSNotation
,XSRestrictionSimpleType
,XSSimpleType
,XSType
,XSUnionSimpleType
- All Known Implementing Classes:
AttGroupDeclImpl
,AttributeDeclImpl
,AttributesHolder
,ComplexTypeImpl
,ElementDecl
,ListSimpleTypeImpl
,ModelGroupDeclImpl
,NotationImpl
,RestrictionSimpleTypeImpl
,SimpleTypeImpl
,UnionSimpleTypeImpl
Base interface of all "declarations".
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the (local) name of the declaration.Target namespace to which this component belongs.boolean
Deprecated.use the isGlobal method, which always returns the opposite of this function.boolean
isGlobal()
Returns true if this declaration is a global declaration.boolean
isLocal()
Returns true if this declaration is a local declaration.Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
Method Details
-
getTargetNamespace
String getTargetNamespace()Target namespace to which this component belongs.""
is used to represent the default no namespace. -
getName
String getName()Gets the (local) name of the declaration.- Returns:
- null if this component is anonymous.
-
isAnonymous
boolean isAnonymous()Deprecated.use the isGlobal method, which always returns the opposite of this function. Or the isLocal method. -
isGlobal
boolean isGlobal()Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object. -
isLocal
boolean isLocal()Returns true if this declaration is a local declaration. Equivalent of!isGlobal()
-