net.sourceforge.chaperon.model.extended
Class Element

java.lang.Object
  extended by net.sourceforge.chaperon.model.extended.Pattern
      extended by net.sourceforge.chaperon.model.extended.Element
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Element
extends Pattern

This class represent a reference to an element.

Version:
CVS $Id: Element.java,v 1.5 2004/01/07 08:28:49 benedikta Exp $
Author:
Stephan Michels
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern
index
 
Constructor Summary
Element()
           
Element(java.lang.String symbol)
          Create a element symbol.
 
Method Summary
 java.lang.Object clone()
          Create a clone this pattern.
 boolean contains(char c)
           
 boolean contains(char minimum, char maximum)
           
 PatternSet getFirstSet()
           
 PatternSet getLastSet()
           
 char[] getLimits()
           
 java.lang.String getLocation()
          Returns the location from the input source.
 java.lang.String getSymbol()
           
 boolean isNullable()
           
 void setLocation(java.lang.String location)
          Set the location from the input source.
 void setSymbol(java.lang.String symbol)
           
 java.lang.String toString()
           
 Violations validate()
          Validates this pattern.
 
Methods inherited from class net.sourceforge.chaperon.model.extended.Pattern
addAscendingSuccessor, addDescendingSuccessor, addSuccessor, getAllPattern, getAncestors, getAscendingAncestors, getAscendingSuccessors, getDefinition, getDescendingAncestors, getDescendingSuccessors, getSuccessors, hasAncestor, hasAscendingAncestor, hasAscendingSuccessor, hasDescendingAncestor, hasDescendingSuccessor, hasSuccessor, setDefinition, toString, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Element

public Element()

Element

public Element(java.lang.String symbol)
Create a element symbol.

Parameters:
name - Name of the symbol.
Method Detail

setSymbol

public void setSymbol(java.lang.String symbol)

getSymbol

public java.lang.String getSymbol()
Specified by:
getSymbol in class Pattern

isNullable

public boolean isNullable()
Specified by:
isNullable in class Pattern

getFirstSet

public PatternSet getFirstSet()
Specified by:
getFirstSet in class Pattern

getLastSet

public PatternSet getLastSet()
Specified by:
getLastSet in class Pattern

getLimits

public char[] getLimits()
Specified by:
getLimits in class Pattern

contains

public boolean contains(char minimum,
                        char maximum)
Specified by:
contains in class Pattern

contains

public boolean contains(char c)
Specified by:
contains in class Pattern

setLocation

public void setLocation(java.lang.String location)
Set the location from the input source.

Overrides:
setLocation in class Pattern
Parameters:
location - Location in the input source.

getLocation

public java.lang.String getLocation()
Returns the location from the input source.

Overrides:
getLocation in class Pattern
Returns:
Location in the input source.

clone

public java.lang.Object clone()
Create a clone this pattern.

Specified by:
clone in class Pattern
Returns:
Clone of this pattern.
Throws:
java.lang.CloneNotSupportedException - If an exception occurs during the cloning.

validate

public Violations validate()
Validates this pattern.

Specified by:
validate in class Pattern
Returns:
Return a list of violations, if this pattern isn't valid.

toString

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


Copyright ? 2003 Chaperon project. All Rights Reserved.