org.apache.directory.shared.ldap.schema.syntax
Class FacsimileTelephoneNumberSyntaxChecker

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.syntax.AbstractSyntaxChecker
      extended by org.apache.directory.shared.ldap.schema.syntax.TelephoneNumberSyntaxChecker
          extended by 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

Field Summary
 
Fields inherited from class org.apache.directory.shared.ldap.schema.syntax.TelephoneNumberSyntaxChecker
defaultMandatory
 
Constructor Summary
  FacsimileTelephoneNumberSyntaxChecker()
          Creates a new instance of TelephoneNumberSyntaxChecker.
protected FacsimileTelephoneNumberSyntaxChecker(java.lang.String oid)
          Creates a new instance of FacsimileTelephoneNumberSyntaxChecker.
 
Method Summary
 boolean isValidSyntax(java.lang.Object value)
          Determines if the attribute's value conforms to the attribute syntax.
 
Methods inherited from class org.apache.directory.shared.ldap.schema.syntax.TelephoneNumberSyntaxChecker
addRegexp, setDefaultRegexp
 
Methods inherited from class org.apache.directory.shared.ldap.schema.syntax.AbstractSyntaxChecker
assertSyntax, getSyntaxOid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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-2011 Apache Software Foundation. All Rights Reserved.