public final class FacsimileTelephoneNumberSyntaxChecker extends SyntaxChecker
fax-number = telephone-number *( DOLLAR fax-parameter )
telephone-number = PrintableString
fax-parameter = "twoDimensional" |
"fineResolution" |
"unlimitedLength" |
"b4Length" |
"a3Width" |
"b4Width" |
"uncompressed"
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 |
FacsimileTelephoneNumberSyntaxChecker.Builder
A static Builder for this class
|
SyntaxChecker.SCBuilder<SC>| Modifier and Type | Field and Description |
|---|---|
private static String |
A3_LENGTH |
private static String |
B4_LENGTH |
private static String |
B4_WIDTH |
private static String |
DEFAULT_REGEXP
The default pattern used to check a TelephoneNumber
|
private Pattern |
defaultPattern
The compiled default pattern
|
private String |
defaultRegexp
The compiled default pattern
|
private static Set<String> |
faxParameters
A set which contains all the possible fax parameters values
|
private static String |
FINE_RESOLUTION |
static FacsimileTelephoneNumberSyntaxChecker |
INSTANCE
A static instance of FacsimileTelephoneNumberSyntaxChecker
|
private static String |
TWO_DIMENSIONAL
Fax parameters possible values
|
private static String |
UNCOMPRESSED |
private static String |
UNLIMITED_LENGTH |
LOG, serialVersionUIDdescription, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification| Modifier | Constructor and Description |
|---|---|
private |
FacsimileTelephoneNumberSyntaxChecker(String oid)
Creates a new instance of TelephoneNumberSyntaxChecker.
|
private |
FacsimileTelephoneNumberSyntaxChecker(String oid,
String defaultRegexp,
Pattern defaultPattern)
Creates a new instance of TelephoneNumberSyntaxChecker.
|
| Modifier and Type | Method and Description |
|---|---|
static FacsimileTelephoneNumberSyntaxChecker.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, toStringcopy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockprivate static final String DEFAULT_REGEXP
private String defaultRegexp
private Pattern defaultPattern
private static final String TWO_DIMENSIONAL
private static final String FINE_RESOLUTION
private static final String UNLIMITED_LENGTH
private static final String B4_LENGTH
private static final String A3_LENGTH
private static final String B4_WIDTH
private static final String UNCOMPRESSED
private static Set<String> faxParameters
public static final FacsimileTelephoneNumberSyntaxChecker INSTANCE
private FacsimileTelephoneNumberSyntaxChecker(String oid)
oid - the OIDprivate FacsimileTelephoneNumberSyntaxChecker(String oid, String defaultRegexp, Pattern defaultPattern)
oid - The OIDdefaultRegexp - the default regexp to usedefaultPattern - The default pattern to usepublic static FacsimileTelephoneNumberSyntaxChecker.Builder builder()
public String getRegexp()
public boolean isValidSyntax(Object value)
isValidSyntax in class SyntaxCheckervalue - the value of some attribute with the syntaxCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.