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, toSyntaxDescription
protected 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 Item
public boolean allowEmpty()
allowEmpty
in class Item
public java.util.Iterator<Item> getItemsIterator()
getItemsIterator
in class Item
public Item startElement(QName name) throws RelaxException
startElement
in class Item
name
- the name of the elementRelaxException
public void attributeSet(java.util.HashSet<QName> set)
attributeSet
in class Item
public boolean allowAttribute(QName name, java.lang.String value) throws RelaxException
allowAttribute
in class Item
name
- the name of the attributevalue
- the value of the attributeRelaxException
public Item setAttribute(QName name, java.lang.String value) throws RelaxException
setAttribute
in class Item
name
- the name of the attributevalue
- the value of the attributeRelaxException
public Item attributeEnd()
attributeEnd
in class Item
public Item text(java.lang.CharSequence text) throws RelaxException
text
in class Item
RelaxException
public Item endElement() throws RelaxException
endElement
in class Item
RelaxException