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
public class ModelGroupDeclImpl extends ComponentImpl implements XSModelGroupDecl, Ref.Term
-
-
Field Summary
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Constructor Description ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _targetNamespace, String _name, ModelGroupImpl _modelGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Objectapply(XSFunction function)Accepts a functor.Objectapply(XSTermFunction function)<T,P>
Tapply(XSTermFunctionWithParam<T,P> function, P param)XSElementDeclasElementDecl()XSModelGroupasModelGroup()XSModelGroupDeclasModelGroupDecl()XSWildcardasWildcard()XSModelGroupgetModelGroup()Gets the body of this declaration.StringgetName()Gets the (local) name of the declaration.StringgetTargetNamespace()Target namespace to which this component belongs.XSTermgetTerm()Obtains a reference as a term.booleanisAnonymous()Deprecated.booleanisElementDecl()booleanisGlobal()Returns true if this declaration is a global declaration.booleanisLocal()Returns true if this declaration is a local declaration.booleanisModelGroup()booleanisModelGroupDecl()booleanisWildcard()voidredefine(ModelGroupDeclImpl oldMG)This component is a redefinition of "oldMG".voidvisit(XSTermVisitor visitor)voidvisit(XSVisitor visitor)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 Detail
-
ModelGroupDeclImpl
public ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _targetNamespace, String _name, ModelGroupImpl _modelGroup)
-
-
Method Detail
-
getModelGroup
public XSModelGroup getModelGroup()
Description copied from interface:XSModelGroupDeclGets the body of this declaration.- Specified by:
getModelGroupin interfaceXSModelGroupDecl
-
redefine
public void redefine(ModelGroupDeclImpl oldMG)
This component is a redefinition of "oldMG". Fix up the internal state as such.
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponentAccepts a visitor.- Specified by:
visitin interfaceXSComponent
-
visit
public void visit(XSTermVisitor visitor)
-
apply
public Object apply(XSTermFunction function)
-
apply
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
-
apply
public Object apply(XSFunction function)
Description copied from interface:XSComponentAccepts a functor.- Specified by:
applyin interfaceXSComponent
-
isWildcard
public boolean isWildcard()
- Specified by:
isWildcardin interfaceXSTerm
-
isModelGroupDecl
public boolean isModelGroupDecl()
- Specified by:
isModelGroupDeclin interfaceXSTerm
-
isModelGroup
public boolean isModelGroup()
- Specified by:
isModelGroupin interfaceXSTerm
-
isElementDecl
public boolean isElementDecl()
- Specified by:
isElementDeclin interfaceXSTerm
-
asWildcard
public XSWildcard asWildcard()
- Specified by:
asWildcardin interfaceXSTerm
-
asModelGroupDecl
public XSModelGroupDecl asModelGroupDecl()
- Specified by:
asModelGroupDeclin interfaceXSTerm
-
asModelGroup
public XSModelGroup asModelGroup()
- Specified by:
asModelGroupin interfaceXSTerm
-
asElementDecl
public XSElementDecl asElementDecl()
- Specified by:
asElementDeclin interfaceXSTerm
-
getTerm
public XSTerm getTerm()
Description copied from interface:Ref.TermObtains a reference as a term.
-
getName
public 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 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
-
-