org.apache.directory.shared.ldap.schema.syntax
Class FacsimileTelephoneNumberSyntaxChecker
java.lang.Object
org.apache.directory.shared.ldap.schema.syntax.AbstractSyntaxChecker
org.apache.directory.shared.ldap.schema.syntax.TelephoneNumberSyntaxChecker
org.apache.directory.shared.ldap.schema.syntax.FacsimileTelephoneNumberSyntaxChecker
- All Implemented Interfaces:
- SyntaxChecker
public class FacsimileTelephoneNumberSyntaxChecker
- extends TelephoneNumberSyntaxChecker
A SyntaxChecker which verifies that a value is a facsimile TelephoneNumber according
to ITU recommendation E.123 for the Telephone number part, and from RFC 4517, par.
3.3.11 :
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
- Version:
- $Rev$
- Author:
- Apache Directory Project
Method Summary |
boolean |
isValidSyntax(java.lang.Object value)
Determines if the attribute's value conforms to the attribute syntax. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacsimileTelephoneNumberSyntaxChecker
public FacsimileTelephoneNumberSyntaxChecker()
- Creates a new instance of TelephoneNumberSyntaxChecker.
FacsimileTelephoneNumberSyntaxChecker
protected FacsimileTelephoneNumberSyntaxChecker(java.lang.String oid)
- Creates a new instance of FacsimileTelephoneNumberSyntaxChecker.
- Parameters:
oid
- the oid to associate with this new SyntaxChecker
isValidSyntax
public boolean isValidSyntax(java.lang.Object value)
- Description copied from interface:
SyntaxChecker
- Determines if the attribute's value conforms to the attribute syntax.
- Specified by:
isValidSyntax
in interface SyntaxChecker
- Overrides:
isValidSyntax
in class TelephoneNumberSyntaxChecker
- Parameters:
value
- the value of some attribute with the syntax
- Returns:
- true if the value is in the valid syntax, false otherwise
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.