com.caucho.relaxng.pattern
Class ZeroOrMorePattern

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

public class ZeroOrMorePattern
extends Pattern

Relax one or more pattern


Field Summary
 
Fields inherited from class com.caucho.relaxng.pattern.Pattern
L
 
Constructor Summary
ZeroOrMorePattern()
          Creates a new zero-or-more pattern.
ZeroOrMorePattern(Pattern pattern)
          Creates a new zero-or-more pattern.
 
Method Summary
 void addChild(Pattern child)
          Adds an element.
 Item createItem(GrammarPattern grammar)
          Creates the production item.
 boolean equals(java.lang.Object o)
           
 Pattern getPatterns()
          returns the group.
 java.lang.String getTagName()
          Returns the Relax schema name.
 int hashCode()
           
 java.lang.String toProduction()
          Returns a string for the production.
 java.lang.String toString()
          Debugging.
 
Methods inherited from class com.caucho.relaxng.pattern.Pattern
addNameChild, createNameItem, endElement, error, getElementName, getLocation, getParent, hasData, hasElement, setElementName, setFilename, setLine, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZeroOrMorePattern

public ZeroOrMorePattern()
Creates a new zero-or-more pattern.


ZeroOrMorePattern

public ZeroOrMorePattern(Pattern pattern)
                  throws RelaxException
Creates a new zero-or-more pattern.

Throws:
RelaxException
Method Detail

getTagName

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

Overrides:
getTagName in class Pattern

addChild

public void addChild(Pattern child)
              throws RelaxException
Adds an element.

Overrides:
addChild in class Pattern
Throws:
RelaxException

getPatterns

public Pattern getPatterns()
returns the group.


createItem

public Item createItem(GrammarPattern grammar)
                throws RelaxException
Creates the production 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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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