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
public interface XSDeclaration extends XSComponent
Base interface of all "declarations".- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.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 Detail
-
getTargetNamespace
java.lang.String getTargetNamespace()
Target namespace to which this component belongs.""
is used to represent the default no namespace.
-
getName
java.lang.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()
-
-