|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.schema.DescriptionUtils
public final class 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:
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 for
public static String getDescription(LdapComparator<?> comparator)
ComparatorDescription = "("
numericoid
["DESC" qdstring ]
"FQCN" whsp fqcn
["BYTECODE" whsp base64 ]
extensions
")"
comparator - the Comparator to generate the description for
public 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 specification
public 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 for
public 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 for
public 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 for
public static String getDescription(Normalizer normalizer)
NormalizerDescription = "("
numericoid
["DESC" qdstring ]
"FQCN" whsp fqcn
["BYTECODE" whsp base64 ]
extensions
")"
normalizer - the Normalizer to generate the description for
public 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 for
public static String getDescription(LdapSyntax syntax)
SyntaxDescription = "(" whsp
numericoid whsp
[ "DESC" qdstring ]
[ extensions ]
whsp ")"
syntax - the Syntax to generate a description for
public static String getDescription(SyntaxChecker syntaxChecker)
SyntaxCheckerDescription = "("
numericoid
["DESC" qdstring ]
"FQCN" whsp fqcn
["BYTECODE" whsp base64 ]
extensions
")"
syntaxChecker - the SyntaxChecker to generate the description for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||