com.caucho.relaxng.program
Class ChoiceNameItem

java.lang.Object
  extended by com.caucho.relaxng.program.NameClassItem
      extended by com.caucho.relaxng.program.ChoiceNameItem

public class ChoiceNameItem
extends NameClassItem

Generates programs from patterns.


Field Summary
protected static L10N L
           
 
Fields inherited from class com.caucho.relaxng.program.NameClassItem
log
 
Constructor Summary
ChoiceNameItem()
           
 
Method Summary
 void addItem(NameClassItem item)
           
static NameClassItem create(NameClassItem left, NameClassItem right)
           
 boolean equals(java.lang.Object o)
          Returns true if the object is an empty item.
 void firstSet(java.util.HashSet<QName> set)
          Returns the first set, the set of element names possible.
 NameClassItem getMin()
           
 int hashCode()
          Returns the hash code for the empty item.
 boolean matches(QName name)
          Allows empty if both allow empty.
 java.lang.String toString()
           
 java.lang.String toSyntaxDescription(java.lang.String prefix)
          Returns the pretty printed syntax.
 
Methods inherited from class com.caucho.relaxng.program.NameClassItem
error
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

L

protected static final L10N L
Constructor Detail

ChoiceNameItem

public ChoiceNameItem()
Method Detail

create

public static NameClassItem create(NameClassItem left,
                                   NameClassItem right)

addItem

public void addItem(NameClassItem item)

getMin

public NameClassItem getMin()

firstSet

public void firstSet(java.util.HashSet<QName> set)
Returns the first set, the set of element names possible.

Overrides:
firstSet in class NameClassItem

matches

public boolean matches(QName name)
Allows empty if both allow empty.

Specified by:
matches in class NameClassItem

toSyntaxDescription

public java.lang.String toSyntaxDescription(java.lang.String prefix)
Returns the pretty printed syntax.

Specified by:
toSyntaxDescription in class NameClassItem

hashCode

public int hashCode()
Returns the hash code for the empty item.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if the object is an empty item.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object