public class NameFormSyntax extends AttributeSyntax<AttributeSyntaxCfg>
Constructor and Description |
---|
NameFormSyntax()
Creates a new instance of this syntax.
|
Modifier and Type | Method and Description |
---|---|
static NameForm |
decodeNameForm(org.forgerock.opendj.ldap.ByteSequence value,
Schema schema,
boolean allowUnknownElements)
Decodes the contents of the provided ASN.1 octet string as a name form
definition according to the rules of this syntax.
|
String |
getDescription()
Retrieves a description for this attribute syntax.
|
String |
getName()
Retrieves the common name for this attribute syntax.
|
String |
getOID()
Retrieves the OID for this attribute syntax.
|
org.forgerock.opendj.ldap.schema.Syntax |
getSDKSyntax(org.forgerock.opendj.ldap.schema.Schema schema)
Returns the SDK Syntax equivalent to this syntax.
|
equals, finalizeSyntax, getApproximateMatchingRule, getEqualityMatchingRule, getOrderingMatchingRule, getSubstringMatchingRule, hashCode, initializeSyntax, isBEREncodingRequired, isConfigurationAcceptable, isHumanReadable, toString, toString, valueIsAcceptable
public NameFormSyntax()
initializeSyntax
method.public org.forgerock.opendj.ldap.schema.Syntax getSDKSyntax(org.forgerock.opendj.ldap.schema.Schema schema)
This method allow smooth migration to SDK syntax. It will disappear once the the migration to SDK schema is complete, together with this class and all its implementation.
getSDKSyntax
in class AttributeSyntax<AttributeSyntaxCfg>
schema
- Schema to use to retrieve the syntaxpublic String getName()
getName
in class AttributeSyntax<AttributeSyntaxCfg>
public String getOID()
getOID
in class AttributeSyntax<AttributeSyntaxCfg>
public String getDescription()
getDescription
in class AttributeSyntax<AttributeSyntaxCfg>
public static NameForm decodeNameForm(org.forgerock.opendj.ldap.ByteSequence value, Schema schema, boolean allowUnknownElements) throws DirectoryException
value
- The ASN.1 octet string containing the value
to decode (it does not need to be
normalized).schema
- The schema to use to resolve references to
other schema elements.allowUnknownElements
- Indicates whether to allow values that
reference a structural objectclass and/or
required or optional attribute types which
are not defined in the server schema. This
should only be true when called by
valueIsAcceptable
.DirectoryException
- If the provided value cannot be decoded as an
name form definition.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.