Ref.Term
, XSComponent
, XSDeclaration
, XSModelGroupDecl
, XSTerm
public class ModelGroupDeclImpl extends ComponentImpl implements XSModelGroupDecl, Ref.Term
ownerDocument
Constructor | Description |
---|---|
ModelGroupDeclImpl(SchemaDocumentImpl owner,
AnnotationImpl _annon,
org.xml.sax.Locator _loc,
ForeignAttributesImpl _fa,
java.lang.String _targetNamespace,
java.lang.String _name,
ModelGroupImpl _modelGroup) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
apply(XSFunction function) |
Accepts a functor.
|
java.lang.Object |
apply(XSTermFunction function) |
|
<T,P> T |
apply(XSTermFunctionWithParam<T,P> function,
P param) |
|
XSElementDecl |
asElementDecl() |
|
XSModelGroup |
asModelGroup() |
|
XSModelGroupDecl |
asModelGroupDecl() |
|
XSWildcard |
asWildcard() |
|
XSModelGroup |
getModelGroup() |
Gets the body of this declaration.
|
java.lang.String |
getName() |
Gets the (local) name of the declaration.
|
java.lang.String |
getTargetNamespace() |
Target namespace to which this component belongs.
|
XSTerm |
getTerm() |
Obtains a reference as a term.
|
boolean |
isAnonymous() |
Deprecated.
|
boolean |
isElementDecl() |
|
boolean |
isGlobal() |
Returns true if this declaration is a global declaration.
|
boolean |
isLocal() |
Returns true if this declaration is a local declaration.
|
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.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
public ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _targetNamespace, java.lang.String _name, ModelGroupImpl _modelGroup)
public XSModelGroup getModelGroup()
XSModelGroupDecl
getModelGroup
in interface XSModelGroupDecl
public void redefine(ModelGroupDeclImpl oldMG)
public void visit(XSVisitor visitor)
XSComponent
visit
in interface XSComponent
public void visit(XSTermVisitor visitor)
public java.lang.Object apply(XSTermFunction function)
public <T,P> T apply(XSTermFunctionWithParam<T,P> function, P param)
public java.lang.Object apply(XSFunction function)
XSComponent
apply
in interface XSComponent
public boolean isWildcard()
isWildcard
in interface XSTerm
public boolean isModelGroupDecl()
isModelGroupDecl
in interface XSTerm
public boolean isModelGroup()
isModelGroup
in interface XSTerm
public boolean isElementDecl()
isElementDecl
in interface XSTerm
public XSWildcard asWildcard()
asWildcard
in interface XSTerm
public XSModelGroupDecl asModelGroupDecl()
asModelGroupDecl
in interface XSTerm
public XSModelGroup asModelGroup()
asModelGroup
in interface XSTerm
public XSElementDecl asElementDecl()
asElementDecl
in interface XSTerm
public XSTerm getTerm()
Ref.Term
public java.lang.String getName()
XSDeclaration
getName
in interface XSDeclaration
public java.lang.String getTargetNamespace()
XSDeclaration
""
is used to represent the default no namespace.getTargetNamespace
in interface XSDeclaration
public boolean isAnonymous()
isAnonymous
in interface XSDeclaration
public final boolean isGlobal()
XSDeclaration
isGlobal
in interface XSDeclaration
public final boolean isLocal()
XSDeclaration
!isGlobal()
isLocal
in interface XSDeclaration
Copyright © 2018 Oracle Corporation. All rights reserved.