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
|
description, 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
|
assertSyntax, equals, toStringcopy, getBytecode, getFqcn, isValid, registerOid, setBytecode, setFqcnaddExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecificationprotected 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.