net.sourceforge.chaperon.model.extended
Class Optional

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

public class Optional
extends PatternList

Version:
CVS $Id: Optional.java,v 1.1 2003/12/12 14:11:34 benedikta Exp $
Author:
Stephan Michels
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern
index
 
Constructor Summary
Optional()
           
 
Method Summary
 java.lang.Object clone()
          Create a clone this pattern.
 boolean isNullable()
           
 java.lang.String toString()
          Return a string representation of this pattern
 java.lang.String toString(PatternSet previous, PatternSet next)
           
 Violations validate()
          Validates this pattern.
 
Methods inherited from class net.sourceforge.chaperon.model.extended.PatternList
addPattern, contains, contains, getAllPattern, getFirstSet, getLastSet, getLimits, getPattern, getPattern, getPatternAsArray, getPatternCount, getSymbol, update
 
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
 

Constructor Detail

Optional

public Optional()
Method Detail

isNullable

public boolean isNullable()
Overrides:
isNullable in class PatternList

toString

public java.lang.String toString()
Return a string representation of this pattern

Overrides:
toString in class PatternList
Returns:
String representation of the pattern.

toString

public java.lang.String toString(PatternSet previous,
                                 PatternSet next)
Overrides:
toString in class PatternList

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
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.


Copyright ? 2003 Chaperon project. All Rights Reserved.