|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.relaxng.program.Item
com.caucho.relaxng.program.MemoItem
public class MemoItem
Generates programs from patterns.
| Field Summary | |
|---|---|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
MemoItem(Item item)
|
|
MemoItem(Item item,
LruCache<java.lang.Object,Item> memoMap)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.caucho.relaxng.program.Item |
|---|
addSyntaxNewline, allowsElement, emptyItemIterator, error, groupContinuation, inElementContinuation, interleaveContinuation, isSimpleSyntax, itemIterator, toSyntaxDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
protected static final java.util.logging.Logger log
| Constructor Detail |
|---|
public MemoItem(Item item,
LruCache<java.lang.Object,Item> memoMap)
public MemoItem(Item item)
| Method Detail |
|---|
public void firstSet(java.util.HashSet<QName> set)
firstSet in class Itempublic 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 Item
public Item startElement(QName name)
throws RelaxException
startElement in class Itemname - the name of the element
RelaxExceptionpublic 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 Itemname - the name of the attributevalue - the value of the attribute
RelaxException
public Item setAttribute(QName name,
java.lang.String value)
throws RelaxException
setAttribute in class Itemname - the name of the attributevalue - the value of the attribute
RelaxExceptionpublic Item attributeEnd()
attributeEnd in class Item
public Item text(java.lang.CharSequence text)
throws RelaxException
text in class ItemRelaxException
public Item endElement()
throws RelaxException
endElement in class ItemRelaxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||