public class TelephoneNumberSyntaxChecker extends SyntaxChecker
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
defaultMandatory
A flag set when only the default regexp should be tested
|
serialVersionUIDdescription, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
TelephoneNumberSyntaxChecker()
Creates a new instance of TelephoneNumberSyntaxChecker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRegexp(String regexp)
Add a new valid regexp for a Telephone number
|
boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.
|
void |
setDefaultRegexp(String regexp)
Set the defaut regular expression for the Telephone number
|
equals, setSchemaManager, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlockprotected boolean defaultMandatory
public TelephoneNumberSyntaxChecker()
public void addRegexp(String regexp)
regexp - The new regexp to checkpublic void setDefaultRegexp(String regexp)
regexp - the default regular expression.public boolean isValidSyntax(Object value)
isValidSyntax in class SyntaxCheckervalue - the value of some attribute with the syntaxCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.