ContentTypeImpl, Ref.ContentType, XSComponent, XSContentType, XSParticlepublic class ParticleImpl extends ComponentImpl implements XSParticle, ContentTypeImpl
ownerDocumentUNBOUNDED| Constructor | Description |
|---|---|
ParticleImpl(SchemaDocumentImpl owner,
AnnotationImpl _ann,
Ref.Term _term,
org.xml.sax.Locator _loc) |
|
ParticleImpl(SchemaDocumentImpl owner,
AnnotationImpl _ann,
Ref.Term _term,
org.xml.sax.Locator _loc,
int _maxOccurs,
int _minOccurs) |
|
ParticleImpl(SchemaDocumentImpl owner,
AnnotationImpl _ann,
Ref.Term _term,
org.xml.sax.Locator _loc,
java.math.BigInteger _maxOccurs,
java.math.BigInteger _minOccurs) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
apply(XSContentTypeFunction function) |
|
java.lang.Object |
apply(XSFunction function) |
Accepts a functor.
|
XSContentType |
asEmpty() |
If this content type represents the empty content, return
this,
otherwise null. |
XSParticle |
asParticle() |
Equivalent of
(this instanceof XSParticle)?this:null |
XSSimpleType |
asSimpleType() |
Equivalent of
(this instanceof XSSimpleType)?this:null |
XSContentType |
getContentType() |
|
java.util.List |
getForeignAttributes() |
Foreign attribuets are considered to be on terms.
|
java.math.BigInteger |
getMaxOccurs() |
Gets the max occurs property.
|
java.math.BigInteger |
getMinOccurs() |
|
XSTerm |
getTerm() |
|
boolean |
isRepeated() |
True if the maxOccurs is neither 0 or 1.
|
void |
redefine(ModelGroupDeclImpl oldMG) |
|
void |
visit(XSContentTypeVisitor visitor) |
|
void |
visit(XSVisitor visitor) |
Accepts a visitor.
|
getAnnotation, getAnnotation, getForeignAttribute, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotation, getForeignAttribute, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSinglepublic ParticleImpl(SchemaDocumentImpl owner, AnnotationImpl _ann, Ref.Term _term, org.xml.sax.Locator _loc, java.math.BigInteger _maxOccurs, java.math.BigInteger _minOccurs)
public ParticleImpl(SchemaDocumentImpl owner, AnnotationImpl _ann, Ref.Term _term, org.xml.sax.Locator _loc, int _maxOccurs, int _minOccurs)
public ParticleImpl(SchemaDocumentImpl owner, AnnotationImpl _ann, Ref.Term _term, org.xml.sax.Locator _loc)
public XSTerm getTerm()
getTerm in interface XSParticlepublic java.math.BigInteger getMaxOccurs()
XSParticlegetMaxOccurs in interface XSParticleXSParticle.UNBOUNDED will be returned if the value
is "unbounded".public boolean isRepeated()
XSParticleisRepeated in interface XSParticlepublic java.math.BigInteger getMinOccurs()
getMinOccurs in interface XSParticlepublic void redefine(ModelGroupDeclImpl oldMG)
public XSSimpleType asSimpleType()
XSContentType(this instanceof XSSimpleType)?this:nullasSimpleType in interface XSContentTypepublic XSParticle asParticle()
XSContentType(this instanceof XSParticle)?this:nullasParticle in interface XSContentTypepublic XSContentType asEmpty()
XSContentTypethis,
otherwise null.asEmpty in interface XSContentTypepublic final java.lang.Object apply(XSFunction function)
XSComponentapply in interface XSComponentpublic final java.lang.Object apply(XSContentTypeFunction function)
apply in interface XSContentTypepublic final void visit(XSVisitor visitor)
XSComponentvisit in interface XSComponentpublic final void visit(XSContentTypeVisitor visitor)
visit in interface XSContentTypepublic XSContentType getContentType()
getContentType in interface Ref.ContentTypepublic java.util.List getForeignAttributes()
getForeignAttributes in interface XSComponentgetForeignAttributes in class ComponentImplCopyright © 2018 Oracle Corporation. All rights reserved.