Package com.sun.xml.xsom.impl
Class ModelGroupDeclImpl
java.lang.Object
com.sun.xml.xsom.impl.ComponentImpl
com.sun.xml.xsom.impl.ModelGroupDeclImpl
- All Implemented Interfaces:
Ref.Term
,XSComponent
,XSDeclaration
,XSModelGroupDecl
,XSTerm
-
Field Summary
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
Constructor Summary
ConstructorDescriptionModelGroupDeclImpl
(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _targetNamespace, String _name, ModelGroupImpl _modelGroup) -
Method Summary
Modifier and TypeMethodDescriptionapply
(XSFunction function) Accepts a functor.apply
(XSTermFunction function) <T,
P> T apply
(XSTermFunctionWithParam<T, P> function, P param) Gets the body of this declaration.getName()
Gets the (local) name of the declaration.Target namespace to which this component belongs.getTerm()
Obtains a reference as a term.boolean
Deprecated.boolean
final boolean
isGlobal()
Returns true if this declaration is a global declaration.final boolean
isLocal()
Returns true if this declaration is a local declaration.boolean
boolean
boolean
void
redefine
(ModelGroupDeclImpl oldMG) This component is a redefinition of "oldMG".void
visit
(XSTermVisitor visitor) void
Accepts a visitor.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
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
Methods inherited from interface com.sun.xml.xsom.XSDeclaration
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
-
Constructor Details
-
ModelGroupDeclImpl
public ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _targetNamespace, String _name, ModelGroupImpl _modelGroup)
-
-
Method Details
-
getModelGroup
Description copied from interface:XSModelGroupDecl
Gets the body of this declaration.- Specified by:
getModelGroup
in interfaceXSModelGroupDecl
-
redefine
This component is a redefinition of "oldMG". Fix up the internal state as such. -
visit
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
visit
-
apply
-
apply
-
apply
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
isWildcard
public boolean isWildcard()- Specified by:
isWildcard
in interfaceXSTerm
-
isModelGroupDecl
public boolean isModelGroupDecl()- Specified by:
isModelGroupDecl
in interfaceXSTerm
-
isModelGroup
public boolean isModelGroup()- Specified by:
isModelGroup
in interfaceXSTerm
-
isElementDecl
public boolean isElementDecl()- Specified by:
isElementDecl
in interfaceXSTerm
-
asWildcard
- Specified by:
asWildcard
in interfaceXSTerm
-
asModelGroupDecl
- Specified by:
asModelGroupDecl
in interfaceXSTerm
-
asModelGroup
- Specified by:
asModelGroup
in interfaceXSTerm
-
asElementDecl
- Specified by:
asElementDecl
in interfaceXSTerm
-
getTerm
Description copied from interface:Ref.Term
Obtains a reference as a term. -
getName
Description copied from interface:XSDeclaration
Gets the (local) name of the declaration.- Specified by:
getName
in interfaceXSDeclaration
- Returns:
- null if this component is anonymous.
-
getTargetNamespace
Description copied from interface:XSDeclaration
Target namespace to which this component belongs.""
is used to represent the default no namespace.- Specified by:
getTargetNamespace
in interfaceXSDeclaration
-
isAnonymous
public boolean isAnonymous()Deprecated.- Specified by:
isAnonymous
in interfaceXSDeclaration
-
isGlobal
public final boolean isGlobal()Description copied from interface:XSDeclaration
Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.- Specified by:
isGlobal
in interfaceXSDeclaration
-
isLocal
public final boolean isLocal()Description copied from interface:XSDeclaration
Returns true if this declaration is a local declaration. Equivalent of!isGlobal()
- Specified by:
isLocal
in interfaceXSDeclaration
-