net.sourceforge.chaperon.model.extended
Class UniversalCharacter
java.lang.Object
net.sourceforge.chaperon.model.extended.Pattern
net.sourceforge.chaperon.model.extended.UniversalCharacter
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class UniversalCharacter
- extends Pattern
This class describes an universal character. This pattern matches against all characters.
- Version:
- CVS $Id: UniversalCharacter.java,v 1.4 2004/01/07 08:28:49 benedikta Exp $
- Author:
- Stephan Michels
- See Also:
- Serialized Form
Fields inherited from class net.sourceforge.chaperon.model.extended.Pattern |
index |
Methods inherited from class net.sourceforge.chaperon.model.extended.Pattern |
addAscendingSuccessor, addDescendingSuccessor, addSuccessor, getAllPattern, getAncestors, getAscendingAncestors, getAscendingSuccessors, getDefinition, getDescendingAncestors, getDescendingSuccessors, getLocation, getSuccessors, hasAncestor, hasAscendingAncestor, hasAscendingSuccessor, hasDescendingAncestor, hasDescendingSuccessor, hasSuccessor, setDefinition, setLocation, toString, update |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UniversalCharacter
public UniversalCharacter()
- Create a pattern for an universal character.
isNullable
public boolean isNullable()
- Specified by:
isNullable
in class Pattern
getFirstSet
public PatternSet getFirstSet()
- Specified by:
getFirstSet
in class Pattern
getLastSet
public PatternSet getLastSet()
- Specified by:
getLastSet
in class Pattern
getLimits
public char[] getLimits()
- Specified by:
getLimits
in class Pattern
contains
public boolean contains(char minimum,
char maximum)
- Specified by:
contains
in class Pattern
contains
public boolean contains(char c)
- Specified by:
contains
in class Pattern
getSymbol
public java.lang.String getSymbol()
- Specified by:
getSymbol
in class Pattern
toString
public java.lang.String toString()
- Return a string representation of this pattern
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation of the pattern.
clone
public java.lang.Object clone()
- Create a clone 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.