Package com.sun.xml.xsom.impl
Class ModelGroupDeclImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.DeclarationImpl
-
- com.sun.xml.xsom.impl.ModelGroupDeclImpl
-
- All Implemented Interfaces:
Ref.Term
,XSComponent
,XSDeclaration
,XSModelGroupDecl
,XSTerm
public class ModelGroupDeclImpl extends DeclarationImpl implements XSModelGroupDecl, Ref.Term
-
-
Field Summary
Fields Modifier and Type Field Description private ModelGroupImpl
modelGroup
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
-
Constructor Summary
Constructors Constructor Description ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _targetNamespace, java.lang.String _name, ModelGroupImpl _modelGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
apply(XSFunction function)
Accepts a functor.java.lang.Object
apply(XSTermFunction function)
<T,P>
Tapply(XSTermFunctionWithParam<T,P> function, P param)
XSElementDecl
asElementDecl()
XSModelGroup
asModelGroup()
XSModelGroupDecl
asModelGroupDecl()
XSWildcard
asWildcard()
XSModelGroup
getModelGroup()
Gets the body of this declaration.XSTerm
getTerm()
Obtains a reference as a term.boolean
isElementDecl()
boolean
isModelGroup()
boolean
isModelGroupDecl()
boolean
isWildcard()
void
redefine(ModelGroupDeclImpl oldMG)
This component is a redefinition of "oldMG".void
visit(XSTermVisitor visitor)
void
visit(XSVisitor visitor)
Accepts a visitor.-
Methods inherited from class com.sun.xml.xsom.impl.DeclarationImpl
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
-
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
-
-
-
-
Field Detail
-
modelGroup
private final ModelGroupImpl modelGroup
-
-
Constructor Detail
-
ModelGroupDeclImpl
public ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _targetNamespace, java.lang.String _name, ModelGroupImpl _modelGroup)
-
-
Method Detail
-
getModelGroup
public XSModelGroup getModelGroup()
Description copied from interface:XSModelGroupDecl
Gets the body of this declaration.- Specified by:
getModelGroup
in 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:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
visit
public void visit(XSTermVisitor visitor)
-
apply
public java.lang.Object apply(XSTermFunction function)
-
apply
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
-
apply
public java.lang.Object apply(XSFunction function)
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
public XSWildcard asWildcard()
- Specified by:
asWildcard
in interfaceXSTerm
-
asModelGroupDecl
public XSModelGroupDecl asModelGroupDecl()
- Specified by:
asModelGroupDecl
in interfaceXSTerm
-
asModelGroup
public XSModelGroup asModelGroup()
- Specified by:
asModelGroup
in interfaceXSTerm
-
asElementDecl
public XSElementDecl asElementDecl()
- Specified by:
asElementDecl
in interfaceXSTerm
-
-