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
|
serialVersionUID
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, setSchemaManager, toString
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlock
protected 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 SyntaxChecker
value
- the value of some attribute with the syntaxCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.