com.caucho.relaxng.pattern
Class GrammarPattern

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

public class GrammarPattern
extends Pattern

Relax grammar pattern


Field Summary
protected static L10N L
           
 
Constructor Summary
GrammarPattern()
          Creates a new grammar pattern.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns equals.
 java.lang.String generateId()
          Generates a name.
 Pattern getDefinition(java.lang.String name)
          Gets a definition.
 Pattern getStart()
          Returns the start pattern.
 java.lang.String getTagName()
          Returns the Relax schema name.
 void mergeInclude(GrammarPattern grammar)
          Merges an include.
 void setDefinition(java.lang.String name, Pattern pattern)
          Start definition.
 void setStart(Pattern start)
          Sets the start element
 java.lang.String toString()
          Debugging.
 
Methods inherited from class com.caucho.relaxng.pattern.Pattern
addChild, addNameChild, createItem, createNameItem, endElement, error, getElementName, getLocation, getParent, hasData, hasElement, setElementName, setFilename, setLine, setParent, toProduction
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

L

protected static final L10N L
Constructor Detail

GrammarPattern

public GrammarPattern()
Creates a new grammar pattern.

Method Detail

getTagName

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

Overrides:
getTagName in class Pattern

getStart

public Pattern getStart()
Returns the start pattern.


setStart

public void setStart(Pattern start)
              throws RelaxException
Sets the start element

Throws:
RelaxException

generateId

public java.lang.String generateId()
Generates a name.


setDefinition

public void setDefinition(java.lang.String name,
                          Pattern pattern)
Start definition.


getDefinition

public Pattern getDefinition(java.lang.String name)
Gets a definition.


mergeInclude

public void mergeInclude(GrammarPattern grammar)
Merges an include.


equals

public boolean equals(java.lang.Object o)
Returns equals.

Specified by:
equals in class Pattern

toString

public java.lang.String toString()
Debugging.

Overrides:
toString in class java.lang.Object