|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.schema.SchemaStructure
com.saxonica.schema.Wildcard
com.saxonica.schema.ElementWildcard
This class represents an
Field Summary |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
ElementWildcard()
|
Method Summary | |
void |
compile(PreparedSchema schema,
UserComplexType subjectType)
Compile a particle |
boolean |
fixup(PreparedSchema schema)
Check references from this component to other components |
int |
getElementParticleCardinality(int fingerprint)
Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the cardinality associated with that element particle, that is, the number of times the element can occur within this complex type. |
SchemaType |
getElementParticleType(int fingerprint)
Find an element particle within this complex type definition having a given element name (identified by fingerprint), and return the schema type associated with that element particle. |
int |
getMaxOccurs()
Get the maxOccurs attribute |
int |
getMinOccurs()
Get the minOccurs attribute |
Term |
getTerm()
Get the term represented by this particle |
boolean |
isEmptiable()
Determine if this particle can be empty |
void |
rewrite()
Rewrite a particle prior to compiling it |
void |
setMaxOccurs(int maxOccurs)
Set the maxOccurs attribute |
void |
setMinOccurs(int minOccurs)
Set the minOccurs attribute. |
Methods inherited from class com.saxonica.schema.Wildcard |
addNamespace, allowsAny, getAllowedNamespaces, getDisallowedNamespace, getProcessContents, isIntensionalSubset, matches, setDisallowedNamespace, setNoNamespacesAllowed, setProcessContents, toString, validate |
Methods inherited from class com.saxonica.schema.SchemaStructure |
getColumnNumber, getFixupStatus, getLineNumber, getPublicId, getSchema, getSystemId, getValidationStatus, lookForCycles, setFixupStatus, setLineNumber, setLocator, setSchema, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.saxonica.schema.UserSchemaComponent |
lookForCycles, validate |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
getValidationStatus |
Constructor Detail |
public ElementWildcard()
Method Detail |
public int getMinOccurs()
getMinOccurs
in interface Particle
public void setMinOccurs(int minOccurs)
setMinOccurs
in interface Particle
minOccurs
- the value of the minOccurs attributepublic int getMaxOccurs()
getMaxOccurs
in interface Particle
public void setMaxOccurs(int maxOccurs)
maxOccurs
- the value of the attribute (unbounded = -1)public boolean isEmptiable()
isEmptiable
in interface Particle
public Term getTerm()
getTerm
in interface Particle
public boolean fixup(PreparedSchema schema) throws SchemaException
fixup
in interface UserSchemaComponent
schema
- The schema is used for reporting errors
SchemaException
public void rewrite()
rewrite
in interface Particle
public void compile(PreparedSchema schema, UserComplexType subjectType) throws SchemaException
Particle
compile
in interface Particle
schema
- used for error reporting purposessubjectType
- the complex type being compiled
SchemaException
public SchemaType getElementParticleType(int fingerprint)
getElementParticleType
in interface Particle
fingerprint
- Identifies the name of the child element within this content modelpublic int getElementParticleCardinality(int fingerprint) throws SchemaException, ValidationException
StaticProperty.EXACTLY_ONE
, StaticProperty.ALLOWS_ZERO_OR_ONE
,
StaticProperty.ALLOWS_ZERO_OR_MORE
, StaticProperty.ALLOWS_ONE_OR_MORE
,
If there is no such particle, return zero.
getElementParticleCardinality
in interface Particle
fingerprint
- Identifies the name of the child element within this content model
SchemaException
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |