com.sun.xml.xsom.impl
Class ModelGroupDeclImpl

java.lang.Object
  extended by com.sun.xml.xsom.impl.ComponentImpl
      extended by 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
ModelGroupDeclImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _targetNamespace, String _name, ModelGroupImpl _modelGroup)
           
 
Method Summary
 Object apply(XSFunction function)
          Accepts a functor.
 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.
 String getName()
          Gets the (local) name of the declaration.
 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.
 
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.XSDeclaration
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
 
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
 

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: XSModelGroupDecl
Gets the body of this declaration.

Specified by:
getModelGroup in interface XSModelGroupDecl

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 interface XSComponent

visit

public void visit(XSTermVisitor visitor)
Specified by:
visit in interface XSTerm

apply

public Object apply(XSTermFunction function)
Specified by:
apply in interface XSTerm

apply

public <T,P> T apply(XSTermFunctionWithParam<T,P> function,
                     P param)
Specified by:
apply in interface XSTerm

apply

public Object apply(XSFunction function)
Description copied from interface: XSComponent
Accepts a functor.

Specified by:
apply in interface XSComponent

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in interface XSTerm

isModelGroupDecl

public boolean isModelGroupDecl()
Specified by:
isModelGroupDecl in interface XSTerm

isModelGroup

public boolean isModelGroup()
Specified by:
isModelGroup in interface XSTerm

isElementDecl

public boolean isElementDecl()
Specified by:
isElementDecl in interface XSTerm

asWildcard

public XSWildcard asWildcard()
Specified by:
asWildcard in interface XSTerm

asModelGroupDecl

public XSModelGroupDecl asModelGroupDecl()
Specified by:
asModelGroupDecl in interface XSTerm

asModelGroup

public XSModelGroup asModelGroup()
Specified by:
asModelGroup in interface XSTerm

asElementDecl

public XSElementDecl asElementDecl()
Specified by:
asElementDecl in interface XSTerm

getTerm

public XSTerm getTerm()
Description copied from interface: Ref.Term
Obtains a reference as a term.

Specified by:
getTerm in interface Ref.Term

getName

public String getName()
Description copied from interface: XSDeclaration
Gets the (local) name of the declaration.

Specified by:
getName in interface XSDeclaration
Returns:
null if this component is anonymous.

getTargetNamespace

public String 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 interface XSDeclaration

isAnonymous

public boolean isAnonymous()
Deprecated. 

Specified by:
isAnonymous in interface XSDeclaration

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 interface XSDeclaration

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 interface XSDeclaration


Copyright © 2012 Oracle. All Rights Reserved.