net.sourceforge.chaperon.model.pattern
Class PatternList
java.lang.Object
net.sourceforge.chaperon.model.pattern.Pattern
net.sourceforge.chaperon.model.pattern.PatternList
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- Alternation, Concatenation, PatternGroup
- public abstract class PatternList
- extends Pattern
This class represents a abstract list of pattern.
- Version:
- CVS $Id: PatternList.java,v 1.5 2004/01/15 20:13:35 benedikta Exp $
- Author:
- Stephan Michels
- See Also:
- Serialized Form
Methods inherited from class net.sourceforge.chaperon.model.pattern.Pattern |
clone, getLocation, getMaxOccurs, getMaxOccursAsString, getMinOccurs, getMinOccursAsString, setLocation, setMaxOccurs, setMaxOccursAsString, setMinOccurs, setMinOccursAsString, validate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternList
public PatternList()
addPattern
public void addPattern(Pattern element)
- Adds a pattern to this list
- Parameters:
element
- Pattern.
addPattern
public void addPattern(Pattern[] pattern)
getPattern
public Pattern getPattern(int index)
- Returns a pattern given by an index.
- Parameters:
index
- Index of the pattern
- Returns:
- Pattern
getPattern
public Pattern[] getPattern()
getPatternCount
public int getPatternCount()
- Return the count of pattern in this list.
- Returns:
- Count of pattern.
Copyright ? 2003 Chaperon project. All Rights Reserved.