public final class TelephoneNumberSyntaxChecker extends SyntaxChecker
A valid Telephone number respects more or less this syntax :
" *[+]? *((\([0-9- ,;/#*]+\))|[0-9- ,;/#*]+)+"If needed, and to allow more syntaxes, a list of regexps has been added which can be initialized to other values
Modifier and Type | Class and Description |
---|---|
static class |
TelephoneNumberSyntaxChecker.Builder
A static Builder for this class
|
SyntaxChecker.SCBuilder<SC>
Modifier and Type | Field and Description |
---|---|
static TelephoneNumberSyntaxChecker |
INSTANCE
A static instance of TelephoneNumberSyntaxChecker
|
serialVersionUID
Modifier and Type | Method and Description |
---|---|
static TelephoneNumberSyntaxChecker.Builder |
builder() |
String |
getRegexp()
Get the default regexp (either the original one, or the one that has been set)
|
boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.
|
equals, setSchemaManager, toString
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, 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, unlock
public static final TelephoneNumberSyntaxChecker INSTANCE
public static TelephoneNumberSyntaxChecker.Builder builder()
public String getRegexp()
public boolean isValidSyntax(Object value)
isValidSyntax
in class SyntaxChecker
value
- the value of some attribute with the syntaxCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.