net.sourceforge.chaperon.model.extended
Class Choice
java.lang.Object
net.sourceforge.chaperon.model.extended.Pattern
net.sourceforge.chaperon.model.extended.PatternList
net.sourceforge.chaperon.model.extended.Choice
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class Choice
- extends PatternList
This class describes a alternation of pattern.
- Version:
- CVS $Id: Choice.java,v 1.4 2004/01/07 08:28:49 benedikta Exp $
- Author:
- Stephan Michels
- See Also:
- Serialized Form
Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern |
index |
Constructor Summary |
Choice()
Create a pattern for alternation of pattern. |
Methods inherited from class net.sourceforge.chaperon.model.extended.Pattern |
addAscendingSuccessor, addDescendingSuccessor, addSuccessor, getAncestors, getAscendingAncestors, getAscendingSuccessors, getDefinition, getDescendingAncestors, getDescendingSuccessors, getLocation, getSuccessors, hasAncestor, hasAscendingAncestor, hasAscendingSuccessor, hasDescendingAncestor, hasDescendingSuccessor, hasSuccessor, setDefinition, setLocation |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Choice
public Choice()
- Create a pattern for alternation of pattern.
isNullable
public boolean isNullable()
- Overrides:
isNullable
in class PatternList
getFirstSet
public PatternSet getFirstSet()
- Overrides:
getFirstSet
in class PatternList
getLastSet
public PatternSet getLastSet()
- Overrides:
getLastSet
in class PatternList
update
public void update()
- Overrides:
update
in class PatternList
toString
public java.lang.String toString()
- Overrides:
toString
in class PatternList
toString
public java.lang.String toString(PatternSet previous,
PatternSet next)
- Overrides:
toString
in class PatternList
clone
public java.lang.Object clone()
- Create a clone of 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.
Copyright ? 2003 Chaperon project. All Rights Reserved.