|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Note: State of the content model is stored in the validator
Field Summary | |
static short |
FIRST_ERROR
|
static short |
SUBSEQUENT_ERROR
|
Method Summary | |
boolean |
checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler,
XSConstraints xsConstraints)
check whether this content violates UPA constraint. |
boolean |
endContentModel(int[] state)
The method indicates the end of list of children |
XSElementDecl |
findMatchingElemDecl(org.apache.xerces.xni.QName elementName,
SubstitutionGroupHandler subGroupHandler)
|
java.lang.String |
getTermName(int termId)
Returns the name of the term (element or wildcard) for the given identifier. |
boolean |
isCompactedForUPA()
Checks if this content model has had its min/maxOccurs values reduced for purposes of speeding up UPA. |
int[] |
occurenceInfo(int[] state)
Returns an array containing information about the current repeating term or null if no occurrence counting was being performed at the
current state. |
java.lang.Object |
oneTransition(org.apache.xerces.xni.QName elementName,
int[] state,
SubstitutionGroupHandler subGroupHandler,
XSElementDeclHelper eDeclHelper)
The method corresponds to one transaction in the content model. |
int[] |
startContentModel()
This methods to be called on entering a first element whose type has this content model. |
java.util.Vector |
whatCanGoHere(int[] state)
Check which elements are valid to appear at this point. |
Field Detail |
public static final short FIRST_ERROR
public static final short SUBSEQUENT_ERROR
Method Detail |
public int[] startContentModel()
public java.lang.Object oneTransition(org.apache.xerces.xni.QName elementName, int[] state, SubstitutionGroupHandler subGroupHandler, XSElementDeclHelper eDeclHelper)
elementName
- state
- Current stateeDeclHelper
- A helper that allows inquiry of global element declarations
public boolean endContentModel(int[] state)
state
- Current state of the content model
public boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler, XSConstraints xsConstraints) throws XMLSchemaException
subGroupHandler
- the substitution group handlerxsConstraints
- the XML Schema Constraint checker
XMLSchemaException
public java.util.Vector whatCanGoHere(int[] state)
state
- the current state
public int[] occurenceInfo(int[] state)
Returns an array containing information about the current repeating term
or null
if no occurrence counting was being performed at the
current state.
If an array is returned it will have a length == 4 and will contain:
state
- the current state
public java.lang.String getTermName(int termId)
termId
- identifier for the element declaration or wildcard
public boolean isCompactedForUPA()
public XSElementDecl findMatchingElemDecl(org.apache.xerces.xni.QName elementName, SubstitutionGroupHandler subGroupHandler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |