public class MemoItem extends Item
| Modifier and Type | Field and Description |
|---|---|
protected static L10N |
L |
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
MemoItem(Item item) |
MemoItem(Item item,
LruCache<java.lang.Object,Item> memoMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAttribute(QName name,
java.lang.String value)
Sets an attribute.
|
boolean |
allowEmpty()
Returns true if the item can match empty.
|
Item |
attributeEnd()
Returns true if the item can match empty.
|
void |
attributeSet(java.util.HashSet<QName> set)
Adds to the first set, the set of attribute names possible.
|
Item |
endElement()
Returns the next item when the element closes
|
void |
firstSet(java.util.HashSet<QName> set)
Adds to the first set, the set of element names possible.
|
java.util.Iterator<Item> |
getItemsIterator()
Return all possible child items or null
|
void |
requiredFirstSet(java.util.HashSet<QName> set)
Adds to the first set, the set of element names possible.
|
Item |
setAttribute(QName name,
java.lang.String value)
Sets an attribute.
|
Item |
startElement(QName name)
Returns the next item when an element of the given name is returned
|
Item |
text(java.lang.CharSequence text)
Adds text.
|
addSyntaxNewline, allowsElement, emptyItemIterator, error, groupContinuation, inElementContinuation, interleaveContinuation, isSimpleSyntax, itemIterator, toSyntaxDescriptionprotected static final L10N L
protected static final java.util.logging.Logger log
public MemoItem(Item item)
public void firstSet(java.util.HashSet<QName> set)
public void requiredFirstSet(java.util.HashSet<QName> set)
requiredFirstSet in class Itempublic boolean allowEmpty()
allowEmpty in class Itempublic java.util.Iterator<Item> getItemsIterator()
getItemsIterator in class Itempublic Item startElement(QName name) throws RelaxException
startElement in class Itemname - the name of the elementRelaxExceptionpublic void attributeSet(java.util.HashSet<QName> set)
attributeSet in class Itempublic boolean allowAttribute(QName name, java.lang.String value) throws RelaxException
allowAttribute in class Itemname - the name of the attributevalue - the value of the attributeRelaxExceptionpublic Item setAttribute(QName name, java.lang.String value) throws RelaxException
setAttribute in class Itemname - the name of the attributevalue - the value of the attributeRelaxExceptionpublic Item attributeEnd()
attributeEnd in class Itempublic Item text(java.lang.CharSequence text) throws RelaxException
text in class ItemRelaxExceptionpublic Item endElement() throws RelaxException
endElement in class ItemRelaxException