public class ElementWildcard extends Particle
symbolSpace, target
COMPONENT_FUNCTION_TYPE, FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING
Constructor and Description |
---|
ElementWildcard(EnterpriseConfiguration config) |
ElementWildcard(Wildcard wc) |
Modifier and Type | Method and Description |
---|---|
void |
compile(SchemaCompiler compiler)
Compile a particle
|
boolean |
containsElementWildcard()
Ask whether the particle contains an element wildcard
|
ElementWildcard |
copy() |
boolean |
fixup(SchemaCompiler compiler)
Check references from this component to other components
|
void |
gatherAllPermittedElements(java.util.HashSet<StructuredQName> result,
boolean ignoreWildcards)
Find the set of all element particles allowed within the content model of this particle, identified
by their integer fingerprints.
|
int |
getElementParticleCardinality(StructuredQName elementName)
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(StructuredQName elementName)
Find an element particle within this complex type definition having a given element name
(identified by elementName), and return the schema type associated with that element particle.
|
Term |
getTerm()
Get the term represented by this particle
|
Function |
getTermComponentAsFunction() |
Wildcard |
getWildcard() |
boolean |
isEmptiable()
Determine if this particle can be empty
|
boolean |
isPointless(ModelGroup container)
Test whether the particle is pointless, as described in XML Schema Part 1
Schema Component Constraint: Particle Valid (Restriction)
|
void |
serializeParticle(SchemaModelSerializer serializer)
Serialize the particle
|
void |
setWildcard(Wildcard wildcard) |
boolean |
validate(SchemaCompiler compiler)
Check the validity (consistency) of this element wildcard definition.
|
computeParticleCardinality, getComponentAsFunction, getMaxOccurs, getMinOccurs, isVulnerable, markVulnerableSubParticles, setMaxOccurs, setMinOccurs, setVulnerable
getSymbolSpace, getTarget, getTargetComponentName, isDangling, isResolved, setTarget, setTargetComponentName, tryToResolve
elaborate, getColumnNumber, getConfiguration, getFixupStatus, getGeneratedId, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, hasSameLocation, lookForCycles, makeXPathExpressionPropertyRecord, saveLocation, setConfiguration, setFixupStatus, setGeneratedId, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
elaborate, lookForCycles
getRedefinitionLevel, getValidationStatus
getConfiguration
getColumnNumber, getLineNumber, getPublicId, getSystemId, saveLocation
public ElementWildcard(EnterpriseConfiguration config)
public ElementWildcard(Wildcard wc)
public ElementWildcard copy()
public void setWildcard(Wildcard wildcard)
public Wildcard getWildcard()
public boolean isEmptiable()
isEmptiable
in class Particle
public boolean isPointless(ModelGroup container)
isPointless
in class Particle
container
- the model group containing this particle; null if there is no containing model grouppublic Term getTerm()
public boolean fixup(SchemaCompiler compiler) throws SchemaException
fixup
in interface UserSchemaComponent
fixup
in class Particle
compiler
- the schema compilerSchemaException
public void compile(SchemaCompiler compiler) throws SchemaException
Particle
compile
in class Particle
compiler
- the schema compilerSchemaException
- if a fatal error occurspublic SchemaType getElementParticleType(StructuredQName elementName)
getElementParticleType
in class Particle
elementName
- Identifies the name of the child element within this content modelpublic int getElementParticleCardinality(StructuredQName elementName)
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 StaticProperty.ALLOWS_ZERO
.getElementParticleCardinality
in class Particle
elementName
- Identifies the name of the child element within this content modelpublic boolean containsElementWildcard()
containsElementWildcard
in class Particle
public void gatherAllPermittedElements(java.util.HashSet<StructuredQName> result, boolean ignoreWildcards) throws SchemaException
gatherAllPermittedElements
in class Particle
result
- an initially-empty integer set in which the results are accumulatedignoreWildcards
- true if wildcards are to be ignored. If false, the value XS_INVALID_NAME is added
to the result set if an element wildcard is present (which it is, if we get as far as here)SchemaException
- if an error is found in the schemapublic boolean validate(SchemaCompiler compiler) throws SchemaException
validate
in interface UserSchemaComponent
validate
in class Particle
compiler
- the schema compilerSchemaException
- if an error is found and the
error listener decides that the error is fatalpublic void serializeParticle(SchemaModelSerializer serializer) throws XPathException
serializeParticle
in class Particle
serializer
- the object responsible for serializationXPathException
- if writing the serialized form to the destination failsMissingComponentException
- if the schema cannot be serialized because some components are missing.public Function getTermComponentAsFunction()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.