|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.chaperon.model.extended.Pattern
net.sourceforge.chaperon.model.extended.CharacterClass
This class describes a pattern for a character class, which means the a character matches against a element of this class.
| Field Summary |
| Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern |
index |
| Constructor Summary | |
CharacterClass()
Creates a pattern for a character class. |
|
| Method Summary | |
void |
addCharacterInterval(CharacterInterval interval)
|
void |
addSingleCharacter(SingleCharacter character)
|
java.lang.Object |
clone()
Create a clone of this pattern. |
boolean |
contains(char c)
|
boolean |
contains(char minimum,
char maximum)
|
CharacterInterval |
getCharacterInterval(int index)
|
int |
getCharacterIntervalCount()
|
CharacterInterval[] |
getCharacterIntervals()
|
char[] |
getLimits()
|
SingleCharacter |
getSingleCharacter(int index)
|
int |
getSingleCharacterCount()
|
SingleCharacter[] |
getSingleCharacters()
|
java.lang.String |
getSymbol()
|
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. |
void |
update()
|
Violations |
validate()
Validates this pattern. |
| Methods inherited from class net.sourceforge.chaperon.model.extended.Pattern |
addAscendingSuccessor, addDescendingSuccessor, addFirstPattern, addLastPattern, addSuccessor, getAllPattern, getAncestors, getAscendingAncestors, getAscendingSuccessors, getDefinition, getDescendingAncestors, getDescendingSuccessors, getFirstPattern, getLastPattern, getLocation, getSuccessors, hasAncestor, hasAscendingAncestor, hasAscendingSuccessor, hasDescendingAncestor, hasDescendingSuccessor, hasSuccessor, isFirstPattern, isLastPattern, isNullable, setDefinition, setLocation, setNullable, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CharacterClass()
| Method Detail |
public void addSingleCharacter(SingleCharacter character)
public SingleCharacter getSingleCharacter(int index)
public SingleCharacter[] getSingleCharacters()
public int getSingleCharacterCount()
public void addCharacterInterval(CharacterInterval interval)
public CharacterInterval getCharacterInterval(int index)
public CharacterInterval[] getCharacterIntervals()
public int getCharacterIntervalCount()
public void setExclusive(boolean exclusive)
exclusive - If the character class should be exclusive.public boolean isExclusive()
public void update()
update in class Patternpublic char[] getLimits()
getLimits in class Pattern
public boolean contains(char minimum,
char maximum)
contains in class Patternpublic boolean contains(char c)
contains in class Patternpublic java.lang.String getSymbol()
getSymbol in class Patternpublic java.lang.String toString()
java.lang.CloneNotSupportedException - If an exception occurs during the cloning.public java.lang.Object clone()
clone in class Patternjava.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 | ||||||||