com.caucho.relaxng.pattern
Class RefPattern

java.lang.Object
  extended by com.caucho.relaxng.pattern.Pattern
      extended by com.caucho.relaxng.pattern.RefPattern

public class RefPattern
extends Pattern

Relax reference pattern


Field Summary
 
Fields inherited from class com.caucho.relaxng.pattern.Pattern
L
 
Constructor Summary
RefPattern(GrammarPattern grammar, java.lang.String refName)
          Creates a new element pattern.
 
Method Summary
 Item createItem(GrammarPattern grammar)
          Creates the item.
 boolean equals(java.lang.Object o)
          Returns true if the pattern equals.
 java.lang.String getRefName()
          Returns the definition name.
 java.lang.String getTagName()
          Returns the Relax schema name.
 java.lang.String toProduction()
          Returns a string for the production.
 java.lang.String toString()
          Debugging.
 
Methods inherited from class com.caucho.relaxng.pattern.Pattern
addChild, addNameChild, createNameItem, endElement, error, getElementName, getLocation, getParent, hasData, hasElement, setElementName, setFilename, setLine, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RefPattern

public RefPattern(GrammarPattern grammar,
                  java.lang.String refName)
Creates a new element pattern.

Method Detail

getTagName

public java.lang.String getTagName()
Returns the Relax schema name.

Overrides:
getTagName in class Pattern

getRefName

public java.lang.String getRefName()
Returns the definition name.


createItem

public Item createItem(GrammarPattern grammar)
                throws RelaxException
Creates the item.

Overrides:
createItem in class Pattern
Throws:
RelaxException

toProduction

public java.lang.String toProduction()
Returns a string for the production.

Overrides:
toProduction in class Pattern

equals

public boolean equals(java.lang.Object o)
Returns true if the pattern equals.

Specified by:
equals in class Pattern

toString

public java.lang.String toString()
Debugging.

Overrides:
toString in class java.lang.Object