com.caucho.relaxng.program
Class NameItem

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

public class NameItem
extends NameClassItem

Matches names.


Field Summary
 
Fields inherited from class com.caucho.relaxng.program.NameClassItem
L, log
 
Constructor Summary
NameItem(QName name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void firstSet(java.util.HashSet<QName> set)
          Adds to the first set, the set of element names possible.
 QName getQName()
           
 int hashCode()
           
 boolean matches(QName name)
          Returns true if the name matches.
 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
 

Constructor Detail

NameItem

public NameItem(QName name)
Method Detail

getQName

public QName getQName()

firstSet

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

Overrides:
firstSet in class NameClassItem

matches

public boolean matches(QName name)
Returns true if the name matches.

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()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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