public class ParticleImpl extends ComponentImpl implements XSParticle, ContentTypeImpl
ownerDocument
UNBOUNDED
Constructor and Description |
---|
ParticleImpl(SchemaDocumentImpl owner,
AnnotationImpl _ann,
Ref.Term _term,
Locator _loc) |
ParticleImpl(SchemaDocumentImpl owner,
AnnotationImpl _ann,
Ref.Term _term,
Locator _loc,
BigInteger _maxOccurs,
BigInteger _minOccurs) |
ParticleImpl(SchemaDocumentImpl owner,
AnnotationImpl _ann,
Ref.Term _term,
Locator _loc,
int _maxOccurs,
int _minOccurs) |
Modifier and Type | Method and Description |
---|---|
Object |
apply(XSContentTypeFunction function) |
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() |
List |
getForeignAttributes()
Foreign attribuets are considered to be on terms.
|
BigInteger |
getMaxOccurs()
Gets the max occurs property.
|
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotation, getForeignAttribute, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
public ParticleImpl(SchemaDocumentImpl owner, AnnotationImpl _ann, Ref.Term _term, Locator _loc, BigInteger _maxOccurs, BigInteger _minOccurs)
public ParticleImpl(SchemaDocumentImpl owner, AnnotationImpl _ann, Ref.Term _term, Locator _loc, int _maxOccurs, int _minOccurs)
public ParticleImpl(SchemaDocumentImpl owner, AnnotationImpl _ann, Ref.Term _term, Locator _loc)
public XSTerm getTerm()
getTerm
in interface XSParticle
public BigInteger getMaxOccurs()
XSParticle
getMaxOccurs
in interface XSParticle
UNBOUNDED
will be returned if the value
is "unbounded".public boolean isRepeated()
XSParticle
isRepeated
in interface XSParticle
public BigInteger getMinOccurs()
getMinOccurs
in interface XSParticle
public void redefine(ModelGroupDeclImpl oldMG)
public XSSimpleType asSimpleType()
XSContentType
(this instanceof XSSimpleType)?this:null
asSimpleType
in interface XSContentType
public XSParticle asParticle()
XSContentType
(this instanceof XSParticle)?this:null
asParticle
in interface XSContentType
public XSContentType asEmpty()
XSContentType
this
,
otherwise null.asEmpty
in interface XSContentType
public final Object apply(XSFunction function)
XSComponent
apply
in interface XSComponent
public final Object apply(XSContentTypeFunction function)
apply
in interface XSContentType
public final void visit(XSVisitor visitor)
XSComponent
visit
in interface XSComponent
public final void visit(XSContentTypeVisitor visitor)
visit
in interface XSContentType
public XSContentType getContentType()
getContentType
in interface Ref.ContentType
public List getForeignAttributes()
getForeignAttributes
in interface XSComponent
getForeignAttributes
in class ComponentImpl
Copyright © 2021 JBoss by Red Hat. All rights reserved.