com.caucho.relaxng.pattern
Class DataPattern

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

public class DataPattern
extends Pattern

Relax empty pattern


Field Summary
 
Fields inherited from class com.caucho.relaxng.pattern.Pattern
L
 
Constructor Summary
DataPattern(java.lang.String type)
          Creates a new empty pattern.
 
Method Summary
 Item createItem(GrammarPattern grammar)
          Creates the program (somewhat bogus)
 boolean equals(java.lang.Object o)
           
 boolean hasData()
          Returns true if it contains a data element.
 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, getTagName, hasElement, setElementName, setFilename, setLine, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataPattern

public DataPattern(java.lang.String type)
Creates a new empty pattern.

Method Detail

createItem

public Item createItem(GrammarPattern grammar)
                throws RelaxException
Creates the program (somewhat bogus)

Overrides:
createItem in class Pattern
Throws:
RelaxException

toProduction

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

Overrides:
toProduction in class Pattern

hasData

public boolean hasData()
Returns true if it contains a data element.

Overrides:
hasData in class Pattern

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class Pattern

toString

public java.lang.String toString()
Debugging.

Overrides:
toString in class java.lang.Object