com.sun.xml.xsom.impl
Class ModelGroupImpl

java.lang.Object
  extended by com.sun.xml.xsom.impl.ComponentImpl
      extended by com.sun.xml.xsom.impl.ModelGroupImpl
All Implemented Interfaces:
Ref.Term, XSComponent, XSModelGroup, XSTerm, Iterable<XSParticle>

public class ModelGroupImpl
extends ComponentImpl
implements XSModelGroup, Ref.Term


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.xml.xsom.XSModelGroup
XSModelGroup.Compositor
 
Field Summary
 
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
 
Fields inherited from interface com.sun.xml.xsom.XSModelGroup
ALL, CHOICE, SEQUENCE
 
Constructor Summary
ModelGroupImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, XSModelGroup.Compositor _compositor, ParticleImpl[] _children)
           
 
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()
           
 ParticleImpl getChild(int idx)
          Gets i-ith child.
 ParticleImpl[] getChildren()
          Gets all the children in one array.
 XSModelGroup.Compositor getCompositor()
           
 int getSize()
          Gets the number of children.
 XSTerm getTerm()
          Obtains a reference as a term.
 boolean isElementDecl()
           
 boolean isModelGroup()
           
 boolean isModelGroupDecl()
           
 boolean isWildcard()
           
 Iterator<XSParticle> iterator()
           
 void redefine(ModelGroupDeclImpl 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.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
 

Constructor Detail

ModelGroupImpl

public ModelGroupImpl(SchemaDocumentImpl owner,
                      AnnotationImpl _annon,
                      Locator _loc,
                      ForeignAttributesImpl _fa,
                      XSModelGroup.Compositor _compositor,
                      ParticleImpl[] _children)
Method Detail

getChild

public ParticleImpl getChild(int idx)
Description copied from interface: XSModelGroup
Gets i-ith child.

Specified by:
getChild in interface XSModelGroup

getSize

public int getSize()
Description copied from interface: XSModelGroup
Gets the number of children.

Specified by:
getSize in interface XSModelGroup

getChildren

public ParticleImpl[] getChildren()
Description copied from interface: XSModelGroup
Gets all the children in one array.

Specified by:
getChildren in interface XSModelGroup

getCompositor

public XSModelGroup.Compositor getCompositor()
Specified by:
getCompositor in interface XSModelGroup

redefine

public void redefine(ModelGroupDeclImpl oldMG)

iterator

public Iterator<XSParticle> iterator()
Specified by:
iterator in interface Iterable<XSParticle>

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

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

getTerm

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

Specified by:
getTerm in interface Ref.Term


Copyright © 2012 Oracle. All Rights Reserved.