public class DescriptionUtils extends Object
| Constructor and Description |
|---|
DescriptionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDescription(AttributeType attributeType)
Generates the description using the AttributeTypeDescription as defined
by the syntax: 1.3.6.1.4.1.1466.115.121.1.3.
|
static String |
getDescription(DITContentRule dITContentRule)
Generates the DITContentRuleDescription for a DITContentRule as defined
by the syntax: 1.3.6.1.4.1.1466.115.121.1.16.
|
static String |
getDescription(DITStructureRule dITStructureRule)
Generates the DITStructureRuleDescription for a DITStructureRule as
defined by the syntax: 1.3.6.1.4.1.1466.115.121.1.17.
|
static String |
getDescription(LdapComparator<?> comparator)
Generates the ComparatorDescription for a LdapComparator.
|
static String |
getDescription(LdapSyntax syntax)
Generates the SyntaxDescription for a Syntax as defined by the syntax:
1.3.6.1.4.1.1466.115.121.1.54.
|
static String |
getDescription(MatchingRule matchingRule)
Generates the MatchingRuleDescription for a MatchingRule as defined by
the syntax: 1.3.6.1.4.1.1466.115.121.1.30.
|
static String |
getDescription(MatchingRuleUse matchingRuleUse)
Generates the MatchingRuleUseDescription for a MatchingRuleUse as defined
by the syntax: 1.3.6.1.4.1.1466.115.121.1.31.
|
static String |
getDescription(NameForm nameForm)
Generates the NameFormDescription for a NameForm as defined by the
syntax: 1.3.6.1.4.1.1466.115.121.1.35.
|
static String |
getDescription(Normalizer normalizer)
Generates the NormalizerDescription for a Normalizer.
|
static String |
getDescription(ObjectClass objectClass)
Generates the ObjectClassDescription for an ObjectClass as defined by the
syntax: 1.3.6.1.4.1.1466.115.121.1.37.
|
static String |
getDescription(SyntaxChecker syntaxChecker)
Generates the SyntaxCheckerDescription for a SyntaxChecker.
|
public static String getDescription(AttributeType attributeType)
AttributeTypeDescription = "(" whsp
numericoid whsp ; AttributeType identifier
[ "NAME" qdescrs ] ; name used in AttributeType
[ "DESC" qdstring ] ; description
[ "OBSOLETE" whsp ]
[ "SUP" woid ] ; derived from parent AttributeType
[ "EQUALITY" woid ; Matching Rule name
[ "ORDERING" woid ; Matching Rule name
[ "SUBSTR" woid ] ; Matching Rule name
[ "SYNTAX" whsp noidlen whsp ] ; see section 4.3 RFC 2252
[ "SINGLE-VALUE" whsp ] ; default multi-valued
[ "COLLECTIVE" whsp ] ; default not collective
[ "NO-USER-MODIFICATION" whsp ]; default user modifiable
[ "USAGE" whsp AttributeUsage ]; default userApplications
whsp ")"
attributeType - the attributeType to generate a description forpublic static String getDescription(LdapComparator<?> comparator)
ComparatorDescription = "("
numericoid
["DESC" qdstring ]
"FQCN" whsp fqcn
["BYTECODE" whsp base64 ]
extensions
")"
comparator - the Comparator to generate the description forpublic static String getDescription(DITContentRule dITContentRule)
DITContentRuleDescription = "("
numericoid ; Structural ObjectClass identifier
[ "NAME" qdescrs ]
[ "DESC" qdstring ]
[ "OBSOLETE" ]
[ "AUX" oids ] ; Auxiliary ObjectClasses
[ "MUST" oids ] ; AttributeType identifiers
[ "MAY" oids ] ; AttributeType identifiers
[ "NOT" oids ] ; AttributeType identifiers
")"
dITContentRule - the DIT content rule specificationpublic static String getDescription(DITStructureRule dITStructureRule)
DITStructureRuleDescription = "(" whsp
ruleid ; rule identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "FORM" SP oid ; NameForm
[ SP "SUP" ruleids ] ; superior rules
extensions WSP ; extensions
")"
dITStructureRule - the DITStructureRule to generate the description forpublic static String getDescription(MatchingRule matchingRule)
MatchingRuleDescription = "(" whsp
numericoid whsp ; MatchingRule object identifier
[ "NAME" qdescrs ]
[ "DESC" qdstring ]
[ "OBSOLETE" whsp ]
"SYNTAX" numericoid
whsp ")"
matchingRule - the MatchingRule to generate the description forpublic static String getDescription(MatchingRuleUse matchingRuleUse)
MatchingRuleUseDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "APPLIES" SP oids ; attribute types
extensions WSP RPAREN ; extensions
where:
[numericoid] is the object identifier of the matching rule
associated with this matching rule use description;
NAME [qdescrs] are short names (descriptors) identifying this
matching rule use;
DESC [qdstring] is a short descriptive string;
OBSOLETE indicates this matching rule use is not active;
APPLIES provides a list of attribute types the matching rule applies
to; and
[extensions] describe extensions.
matchingRuleUse - The matching rule from which we want to generate
a MatchingRuleUseDescription.public static String getDescription(NameForm nameForm)
NameFormDescription = "(" whsp
numericoid whsp ; NameForm identifier
[ "NAME" qdescrs ]
[ "DESC" qdstring ]
[ "OBSOLETE" whsp ]
"OC" woid ; Structural ObjectClass
"MUST" oids ; AttributeTypes
[ "MAY" oids ] ; AttributeTypes
whsp ")"
nameForm - the NameForm to generate the description forpublic static String getDescription(Normalizer normalizer)
NormalizerDescription = "("
numericoid
["DESC" qdstring ]
"FQCN" whsp fqcn
["BYTECODE" whsp base64 ]
extensions
")"
normalizer - the Normalizer to generate the description forpublic static String getDescription(ObjectClass objectClass)
ObjectClassDescription = "(" whsp
numericoid whsp ; ObjectClass identifier
[ "NAME" qdescrs ]
[ "DESC" qdstring ]
[ "OBSOLETE" whsp ]
[ "SUP" oids ] ; Superior ObjectClasses
[ ( "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" ) whsp ]
; default structural
[ "MUST" oids ] ; AttributeTypes
[ "MAY" oids ] ; AttributeTypes
whsp ")"
objectClass - the ObjectClass to generate a description forpublic static String getDescription(LdapSyntax syntax)
SyntaxDescription = "(" whsp
numericoid whsp
[ "DESC" qdstring ]
[ extensions ]
whsp ")"
syntax - the Syntax to generate a description forpublic static String getDescription(SyntaxChecker syntaxChecker)
SyntaxCheckerDescription = "("
numericoid
["DESC" qdstring ]
"FQCN" whsp fqcn
["BYTECODE" whsp base64 ]
extensions
")"
syntaxChecker - the SyntaxChecker to generate the description forCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.