public class MaximumCharacterXHTMLConstraint extends MaximumCharacterConstraint
Modifier and Type | Field and Description |
---|---|
static CharacterCounter |
sCounter |
mMaxChar
mErrorMessage
Constructor and Description |
---|
MaximumCharacterXHTMLConstraint(String pErrorMessage,
long pMaxChar)
Creates a new maximum character constraint based on the maximum character value.
|
Modifier and Type | Method and Description |
---|---|
CharacterCounter |
getCounter() |
describeError, getMaxChar, isValid
equals, hashCode, toString
public static final CharacterCounter sCounter
public MaximumCharacterXHTMLConstraint(String pErrorMessage, long pMaxChar)
pErrorMessage
- the error massage; can not be null
.pMaxChar
- the maximum number of characters; must be positive.IllegalArgumentException
- if pErrorMessage is null
or pMaxChar is not positive.public CharacterCounter getCounter()
getCounter
in class MaximumCharacterConstraint
© 1998- 2021 Escenic AS