| |
|
| java.lang.Object net.sourceforge.chaperon.model.pattern.Pattern net.sourceforge.chaperon.model.pattern.CharacterClass
CharacterClass | public class CharacterClass extends Pattern (Code) | | This class describes a pattern for a character class, which means the a character matches
against a element of this class.
author: Stephan Michels version: CVS $Id: CharacterClass.java,v 1.7 2003/12/10 16:34:38 benedikta Exp $ |
Constructor Summary | |
public | CharacterClass() Creates a pattern for a character class. |
CharacterClass | public CharacterClass()(Code) | | Creates a pattern for a character class.
|
addCharacterClassElement | public void addCharacterClassElement(CharacterClassElement element)(Code) | | Add a character class element
Parameters: element - Element, which should be added |
getCharacterClassElement | public CharacterClassElement getCharacterClassElement(int index)(Code) | | Returns a character class element
Parameters: index - Index of the character class element Character class element |
getCharacterClassElementCount | public int getCharacterClassElementCount()(Code) | | Returns the count of character class elements
Count of character class elements |
isExclusive | public boolean isExclusive()(Code) | | If this character class is exclusive
If the character class should be exclusive. |
setExclusive | public void setExclusive(boolean exclusive)(Code) | | If the comparing character must match to the elements, or should not match to the elements.
Parameters: exclusive - If the character class should be exclusive. |
validate | public Violations validate()(Code) | | Validates this pattern.
Return a list of violations, if this pattern isn't valid. |
|
|
|