|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.validators.common.InsertableElementsInfo
--------------------------------------------------------------------------- InsertableElementsInfo is a simple 'data packet' class that is used to get information into and out of the validator APIs that allow you to ask what kind of elements can be inserted into a particular place in an element's content model. The parent element is not explicitly stored here, since it is a separate parameter to the methods that do the query. Since it exists purely to exchange data, it just uses simple public data members. --------------------------------------------------------------------------- InsertableElementsInfo is a simple 'data packet' class that is used to get information into and out of the validator APIs that allow you to ask what kind of elements can be inserted into a particular place in an element's content model.
The parent element is not explicitly stored here, since it is a separate parameter to the methods that do the query.
Since it exists purely to exchange data, it just uses simple public data members.
Field Summary | |
---|---|
boolean |
canHoldPCData
One of the things that could be inserted here is a PCDATA node, in addition to the element type nodes reported. |
int |
childCount
The count of elements in the curChildren array. |
QName[] |
curChildren
The current list of children of the parent element. |
int |
insertAt
The insertion point. |
boolean |
isValidEOC
Indicates that one of the valid things after the insert point is 'end of content', which means that the element being inserted after can legally be the last element. |
QName[] |
possibleChildren
This array is filled with flags that indicate what the possible insertable elements are (i.e. |
boolean[] |
results
This array must be at least as large as possibleChildren since a flag is set in the same indexes in this array to indicate that the possible child at that index in possibleChildren can be inserted at the requested insertion point. |
int |
resultsCount
The number of elements that are valid in the possibleChildren and resultsCount arrays. |
Constructor Summary | |
---|---|
InsertableElementsInfo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean canHoldPCData
public int childCount
Note that, since the curChildren array must have an empty slot at the insertion index, this value can never be zero.
Note also that this value can be changed during processing, though its value on return is meaningless to the caller.
public QName[] curChildren
There must be an empy slot in the array at the requested insertion point. That slot does not have to have any particular value, but it will be used by the validator to do brute force validation in some cases when a 'fully valid' check is done for valid insertable elements.
Note that this array can be modified by the call, so do not expect its contents to remain the same as on input.
public boolean isValidEOC
public int insertAt
public QName[] possibleChildren
If this array is not big enough to hold the results, or is null, then it will be replaced with a new array of the correct size.
public int resultsCount
public boolean[] results
If this array is not big enough to hold the results, or is null, then it will be replaced with a new array of the correct size.
Constructor Detail |
public InsertableElementsInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |