net.sourceforge.chaperon.model.pattern
Class Alternation

java.lang.Object
  extended bynet.sourceforge.chaperon.model.pattern.Pattern
      extended bynet.sourceforge.chaperon.model.pattern.PatternList
          extended bynet.sourceforge.chaperon.model.pattern.Alternation
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Alternation
extends PatternList

This class describes a alternation of pattern.

Version:
CVS $Id: Alternation.java,v 1.4 2003/12/09 19:55:52 benedikta Exp $
Author:
Stephan Michels
See Also:
Serialized Form

Constructor Summary
Alternation()
          Create a pattern for alternation of pattern.
 
Method Summary
 java.lang.Object clone()
          Create a clone of this pattern.
 java.lang.String toString()
          Create a clone of this pattern.
 Violations validate()
          Validates this pattern.
 
Methods inherited from class net.sourceforge.chaperon.model.pattern.PatternList
addPattern, addPattern, getPattern, getPattern, getPatternCount
 
Methods inherited from class net.sourceforge.chaperon.model.pattern.Pattern
getLocation, getMaxOccurs, getMaxOccursAsString, getMinOccurs, getMinOccursAsString, setLocation, setMaxOccurs, setMaxOccursAsString, setMinOccurs, setMinOccursAsString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alternation

public Alternation()
Create a pattern for alternation of pattern.

Method Detail

toString

public java.lang.String toString()
Create a clone of this pattern.

Returns:
Clone of this pattern.
Throws:
java.lang.CloneNotSupportedException - If an exception occurs during the cloning.

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.