Class DescriptionUtils
- java.lang.Object
-
- org.apache.directory.api.ldap.model.schema.DescriptionUtils
-
public final class DescriptionUtils extends Object
Utility class used to generate schema object specifications. Some of the latest work coming out of the LDAPBIS working body adds optional extensions to these syntaxes. Descriptions can be generated for the following objects:- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getDescription(LdapComparator<?> comparator)
Generates the ComparatorDescription for a LdapComparator.static String
getDescription(Normalizer normalizer)
Generates the NormalizerDescription for a Normalizer.static String
getDescription(SyntaxChecker syntaxChecker)
Generates the SyntaxCheckerDescription for a SyntaxChecker.
-
-
-
Method Detail
-
getDescription
public static String getDescription(LdapComparator<?> comparator)
Generates the ComparatorDescription for a LdapComparator. Only the right hand side of the description starting at the opening parenthesis is generated: that is 'ComparatorDescription = ' is not generated.ComparatorDescription = "(" numericoid ["DESC" qdstring ] "FQCN" whsp fqcn ["BYTECODE" whsp base64 ] extensions ")"
- Parameters:
comparator
- the Comparator to generate the description for- Returns:
- the ComparatorDescription string
-
getDescription
public static String getDescription(Normalizer normalizer)
Generates the NormalizerDescription for a Normalizer. Only the right hand side of the description starting at the opening parenthesis is generated: that is 'NormalizerDescription = ' is not generated.NormalizerDescription = "(" numericoid ["DESC" qdstring ] "FQCN" whsp fqcn ["BYTECODE" whsp base64 ] extensions ")"
- Parameters:
normalizer
- the Normalizer to generate the description for- Returns:
- the NormalizerDescription string
-
getDescription
public static String getDescription(SyntaxChecker syntaxChecker)
Generates the SyntaxCheckerDescription for a SyntaxChecker. Only the right hand side of the description starting at the opening parenthesis is generated: that is 'SyntaxCheckerDescription = ' is not generated.SyntaxCheckerDescription = "(" numericoid ["DESC" qdstring ] "FQCN" whsp fqcn ["BYTECODE" whsp base64 ] extensions ")"
- Parameters:
syntaxChecker
- the SyntaxChecker to generate the description for- Returns:
- the SyntaxCheckerDescription string
-
-