|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.chaperon.model.pattern.Pattern
net.sourceforge.chaperon.model.pattern.CharacterClass
public class CharacterClass
This class describes a pattern for a character class, which means the a character matches against a element of this class.
Constructor Summary | |
---|---|
CharacterClass()
Creates a pattern for a character class. |
Method Summary | |
---|---|
void |
addCharacterClassElement(CharacterClassElement element)
Add a character class element |
java.lang.Object |
clone()
Create a clone of this pattern. |
CharacterClassElement |
getCharacterClassElement(int index)
Returns a character class element |
int |
getCharacterClassElementCount()
Returns the count of character class elements |
boolean |
isExclusive()
If this character class is exclusive |
void |
setExclusive(boolean exclusive)
If the comparing character must match to the elements, or should not match to the elements. |
java.lang.String |
toString()
Create a clone of this pattern. |
Violations |
validate()
Validates this pattern. |
Methods inherited from class net.sourceforge.chaperon.model.pattern.Pattern |
---|
getLocation, getMaxOccurs, getMinOccurs, setLocation, setMaxOccurs, setMinOccurs |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CharacterClass()
Method Detail |
---|
public void addCharacterClassElement(CharacterClassElement element)
element
- Element, which should be addedpublic CharacterClassElement getCharacterClassElement(int index)
index
- Index of the character class element
public int getCharacterClassElementCount()
public void setExclusive(boolean exclusive)
exclusive
- If the character class should be exclusive.public boolean isExclusive()
public java.lang.String toString()
toString
in class java.lang.Object
java.lang.CloneNotSupportedException
- If an exception occurs during the cloning.public java.lang.Object clone()
clone
in class Pattern
java.lang.CloneNotSupportedException
- If an exception occurs during the cloning.public Violations validate()
validate
in class Pattern
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |