T
- The type of configuration handled by this attribute
syntax.@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=true, mayInvoke=false) public abstract class AttributeSyntax<T extends AttributeSyntaxCfg> extends Object
Constructor and Description |
---|
AttributeSyntax() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Indicates whether the provided object is equal to this attribute
syntax.
|
void |
finalizeSyntax()
Performs any finalization that may be necessary for this
attribute syntax.
|
org.forgerock.opendj.ldap.schema.MatchingRule |
getApproximateMatchingRule()
Retrieves the default approximate matching rule that will be used
for attributes with this syntax.
|
abstract String |
getDescription()
Retrieves a description for this attribute syntax.
|
org.forgerock.opendj.ldap.schema.MatchingRule |
getEqualityMatchingRule()
Retrieves the default equality matching rule that will be used
for attributes with this syntax.
|
abstract String |
getName()
Retrieves the common name for this attribute syntax.
|
abstract String |
getOID()
Retrieves the OID for this attribute syntax.
|
org.forgerock.opendj.ldap.schema.MatchingRule |
getOrderingMatchingRule()
Retrieves the default ordering matching rule that will be used
for attributes with this syntax.
|
abstract org.forgerock.opendj.ldap.schema.Syntax |
getSDKSyntax(org.forgerock.opendj.ldap.schema.Schema schema)
Returns the SDK Syntax equivalent to this syntax.
|
org.forgerock.opendj.ldap.schema.MatchingRule |
getSubstringMatchingRule()
Retrieves the default substring matching rule that will be used
for attributes with this syntax.
|
int |
hashCode()
Retrieves the hash code for this attribute syntax.
|
void |
initializeSyntax(T configuration,
ServerContext serverContext)
Initializes this attribute syntax based on the information in the
provided configuration entry.
|
boolean |
isBEREncodingRequired()
Indicates whether this attribute syntax requires BER encoding.
|
boolean |
isConfigurationAcceptable(AttributeSyntaxCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this attribute syntax.
|
boolean |
isHumanReadable()
Indicates whether this attribute syntax is human readable.
|
String |
toString()
Retrieves a string representation of this attribute syntax in the
format defined in RFC 2252.
|
void |
toString(StringBuilder buffer)
Appends a string representation of this attribute syntax in the
format defined in RFC 2252 to the provided buffer.
|
boolean |
valueIsAcceptable(org.forgerock.opendj.ldap.ByteSequence value,
LocalizableMessageBuilder invalidReason)
Indicates whether the provided value is acceptable for use in an
attribute with this syntax.
|
public AttributeSyntax()
public void initializeSyntax(T configuration, ServerContext serverContext) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
configuration
- The configuration to use to initialize
this attribute syntax.serverContext
- The server context.org.forgerock.opendj.config.server.ConfigException
- If an unrecoverable problem arises in
the process of performing the
initialization.InitializationException
- If a problem occurs during
initialization that is not
related to the server
configuration.public abstract 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.
schema
- Schema to use to retrieve the syntaxpublic boolean isConfigurationAcceptable(AttributeSyntaxCfg configuration, List<LocalizableMessage> unacceptableReasons)
configuration
- The attribute syntax configuration
for which to make the determination.unacceptableReasons
- A list that may be used to hold the
reasons that the provided
configuration is not acceptable.true
if the provided configuration is acceptable
for this attribute syntax, or false
if not.public void finalizeSyntax()
public abstract String getName()
public abstract String getOID()
public abstract String getDescription()
public org.forgerock.opendj.ldap.schema.MatchingRule getEqualityMatchingRule()
null
if equality
matches will not be allowed for this type by default.public org.forgerock.opendj.ldap.schema.MatchingRule getOrderingMatchingRule()
null
if ordering
matches will not be allowed for this type by default.public org.forgerock.opendj.ldap.schema.MatchingRule getSubstringMatchingRule()
null
if
substring matches will not be allowed for this type by
default.public org.forgerock.opendj.ldap.schema.MatchingRule getApproximateMatchingRule()
null
if
approximate matches will not be allowed for this type by
default.public boolean valueIsAcceptable(org.forgerock.opendj.ldap.ByteSequence value, LocalizableMessageBuilder invalidReason)
value
- The value for which to make the
determination.invalidReason
- The buffer to which the invalid reason
should be appended.true
if the provided value is acceptable for use
with this syntax, or false
if not.public boolean isBEREncodingRequired()
true
if this syntax required BER encoding.public boolean isHumanReadable()
true
if this syntax is human readable.public final int hashCode()
public final boolean equals(Object o)
public String toString()
public final void toString(StringBuilder buffer)
buffer
- The buffer to which the information should be
appended.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.