0N/A * The contents of this file are subject to the terms of the 0N/A * Common Development and Distribution License, Version 1.0 only 0N/A * (the "License"). You may not use this file except in compliance 0N/A * You can obtain a copy of the license at 0N/A * See the License for the specific language governing permissions 0N/A * and limitations under the License. 0N/A * When distributing Covered Code, include this CDDL HEADER in each 0N/A * file and include the License file at 0N/A * add the following below this CDDL HEADER, with the fields enclosed 873N/A * by brackets "[]" replaced with your own identifying information: 0N/A * Portions Copyright [yyyy] [name of copyright owner] 3231N/A * Copyright 2006-2008 Sun Microsystems, Inc. 5866N/A * Portions Copyright 2012 ForgeRock AS 0N/A * This class implements the teletex terminal identifier attribute syntax, which 0N/A * contains a printable string (the terminal identifier) followed by zero or 0N/A * more parameters, which start with a dollar sign and are followed by a 0N/A * parameter name, a colon, and a value. The parameter value should consist of 0N/A * any string of bytes (the dollar sign and backslash must be escaped with a 0N/A * preceding backslash), and the parameter name must be one of the following 0N/A * The set of allowed fax parameter values, formatted entirely in lowercase 0N/A // The default equality matching rule for this syntax. 0N/A // The default ordering matching rule for this syntax. 0N/A // The default substring matching rule for this syntax. 0N/A * Creates a new instance of this syntax. Note that the only thing that 0N/A * should be done here is to invoke the default constructor for the 0N/A * superclass. All initialization should be performed in the 0N/A * <CODE>initializeSyntax</CODE> method. 0N/A * Retrieves the common name for this attribute syntax. 0N/A * @return The common name for this attribute syntax. 0N/A * Retrieves the OID for this attribute syntax. 0N/A * @return The OID for this attribute syntax. 0N/A * Retrieves a description for this attribute syntax. 0N/A * @return A description for this attribute syntax. 0N/A * Retrieves the default equality matching rule that will be used for 0N/A * attributes with this syntax. 0N/A * @return The default equality matching rule that will be used for 0N/A * attributes with this syntax, or <CODE>null</CODE> if equality 0N/A * matches will not be allowed for this type by default. 0N/A * Retrieves the default ordering matching rule that will be used for 0N/A * attributes with this syntax. 0N/A * @return The default ordering matching rule that will be used for 0N/A * attributes with this syntax, or <CODE>null</CODE> if ordering 0N/A * matches will not be allowed for this type by default. 0N/A * Retrieves the default substring matching rule that will be used for 0N/A * attributes with this syntax. 0N/A * @return The default substring matching rule that will be used for 0N/A * attributes with this syntax, or <CODE>null</CODE> if substring 0N/A * matches will not be allowed for this type by default. 0N/A * Retrieves the default approximate matching rule that will be used for 0N/A * attributes with this syntax. 0N/A * @return The default approximate matching rule that will be used for 0N/A * attributes with this syntax, or <CODE>null</CODE> if approximate 0N/A * matches will not be allowed for this type by default. 0N/A // There is no approximate matching rule by default. 0N/A * Indicates whether the provided value is acceptable for use in an attribute 0N/A * with this syntax. If it is not, then the reason may be appended to the 0N/A * @param value The value for which to make the determination. 0N/A * @param invalidReason The buffer to which the invalid reason should be 0N/A * @return <CODE>true</CODE> if the provided value is acceptable for use with 0N/A * this syntax, or <CODE>false</CODE> if not. 0N/A // Get a lowercase string representation of the value and find its length. 0N/A // The value must contain at least one character. 0N/A // The first character must be a printable string character. 0N/A // Continue reading until we find a dollar sign or the end of the string. 0N/A // Every intermediate character must be a printable string character. 0N/A // We're at the end of the value, so it must be valid unless the last 0N/A // character was a dollar sign. 0N/A // Continue reading until we find the end of the string. Each substring 0N/A // must be a valid teletex terminal identifier parameter followed by a colon 0N/A // and the value. Dollar signs must be escaped 0N/A // We must be at the end of the value. Read the last parameter and make 0N/A // sure it is valid. 0N/A // If we've gotten here, then the value must be valid.