Class DescriptionUtils
java.lang.Object
org.apache.directory.api.ldap.model.schema.DescriptionUtils
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
Modifier and TypeMethodDescriptionstatic StringgetDescription(LdapComparator<?> comparator) Generates the ComparatorDescription for a LdapComparator.static StringgetDescription(Normalizer normalizer) Generates the NormalizerDescription for a Normalizer.static StringgetDescription(SyntaxChecker syntaxChecker) Generates the SyntaxCheckerDescription for a SyntaxChecker.
-
Method Details
-
getDescription
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
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
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
-