Package org.apache.xmlbeans.impl.schema
Class SchemaTypeVisitorImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl
- All Implemented Interfaces:
TypeStoreVisitor
public class SchemaTypeVisitorImpl extends Object implements TypeStoreVisitor
This state machine validates element order based on a deterministic
content model.
-
Constructor Summary
Constructors Constructor Description SchemaTypeVisitorImpl()SchemaTypeVisitorImpl(SchemaParticle part)Construct it by passing the root of the content model. -
Method Summary
Modifier and Type Method Description SchemaParticlecurrentParticle()Returns the current schema elementorg.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl.VisitorState[]expand(org.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl.VisitorState[] orig)Stringget_default_text()Returns default textintget_elementflags()Constructs elementflagsSchemaFieldget_schema_field()Returns the schema field for this field.voidinit(SchemaParticle part)booleanisAllValid()Returns true if the entire content up to now is valid.booleantestValid(QName eltName)booleanvisit(QName eltName)Traverses a deterministic content model, checking for validity at any given point.booleanvisit(QName eltName, boolean testValidity)The actual implementation that traverses a deterministic content model, checking for validity at any given point.
-
Constructor Details
-
SchemaTypeVisitorImpl
Construct it by passing the root of the content model. -
SchemaTypeVisitorImpl
public SchemaTypeVisitorImpl()
-
-
Method Details
-
init
-
expand
public org.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl.VisitorState[] expand(org.apache.xmlbeans.impl.schema.SchemaTypeVisitorImpl.VisitorState[] orig) -
visit
Traverses a deterministic content model, checking for validity at any given point. Call visit(null) once at the end if you're checking for complete validity of the sequence of elements. This is a wrapper for the actual visit implementation.- Specified by:
visitin interfaceTypeStoreVisitor
-
visit
The actual implementation that traverses a deterministic content model, checking for validity at any given point. When testValidity is false then this method will change states if the current state is valid When testValidity is true then this method will not change states and will return if a particular state is valid or invalid -
testValid
-
get_elementflags
public int get_elementflags()Constructs elementflags- Specified by:
get_elementflagsin interfaceTypeStoreVisitor
-
get_default_text
Returns default text- Specified by:
get_default_textin interfaceTypeStoreVisitor
-
get_schema_field
Returns the schema field for this field.- Specified by:
get_schema_fieldin interfaceTypeStoreVisitor
-
currentParticle
Returns the current schema element -
isAllValid
public boolean isAllValid()Returns true if the entire content up to now is valid.
-