public class LdapSyntax extends AbstractSchemaObject
According to ldapbis [MODELS]:
4.1.5. LDAP Syntaxes
LDAP Syntaxes of (attribute and assertion) values are described in
terms of ASN.1 [X.680] and, optionally, have an octet string encoding
known as the LDAP-specific encoding. Commonly, the LDAP-specific
encoding is constrained to string of Universal Character Set (UCS)
[ISO10646] characters in UTF-8 [UTF-8] form.
Each LDAP syntax is identified by an object identifier (OID).
LDAP syntax definitions are written according to the ABNF:
SyntaxDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
extensions WSP RPAREN ; extensions
where:
[numericoid] is object identifier assigned to this LDAP syntax;
DESC [qdstring] is a short descriptive string; and
[extensions] describe extensions.
| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasHumanReadableFlag
A flag set to true if the Syntax has a X-NOT-HUMAN-READABLE extension
|
protected boolean |
isHumanReadable
the human readable flag
|
static long |
serialVersionUID
The mandatory serialVersionUID
|
protected SyntaxChecker |
syntaxChecker
The associated SyntaxChecker
|
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
LdapSyntax(String oid)
Creates a Syntax object using a unique OID.
|
LdapSyntax(String oid,
String description)
Creates a Syntax object using a unique OID.
|
LdapSyntax(String oid,
String description,
boolean isHumanReadable)
Creates a Syntax object using a unique OID.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the current SchemaObject : remove all the references to other objects,
and all the Maps.
|
LdapSyntax |
copy()
Copy the current SchemaObject on place
|
boolean |
equals(Object o) |
SyntaxChecker |
getSyntaxChecker()
Gets the SyntaxChecker used to validate values in accordance with this
Syntax.
|
int |
hashCode() |
boolean |
isHumanReadable()
Gets whether or not the Syntax is human readable.
|
void |
setHumanReadable(boolean humanReadable)
Sets the human readable flag value.
|
void |
setSyntaxChecker(SyntaxChecker syntaxChecker)
Sets the associated SyntaxChecker
|
String |
toString() |
void |
updateSyntaxChecker(SyntaxChecker newSyntaxChecker)
Update the associated SyntaxChecker, even if the SchemaObject is readOnly
|
addExtension, addExtension, addName, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlockpublic static final long serialVersionUID
protected boolean isHumanReadable
private boolean hasHumanReadableFlag
protected SyntaxChecker syntaxChecker
public LdapSyntax(String oid)
oid - the OID for this Syntaxpublic LdapSyntax(String oid, String description)
oid - the OID for this syntaxdescription - the description for this syntaxpublic boolean isHumanReadable()
public void setHumanReadable(boolean humanReadable)
humanReadable - the human readable flag value to setpublic SyntaxChecker getSyntaxChecker()
public void setSyntaxChecker(SyntaxChecker syntaxChecker)
syntaxChecker - The associated SyntaxCheckerpublic void updateSyntaxChecker(SyntaxChecker newSyntaxChecker)
newSyntaxChecker - The associated SyntaxCheckerpublic LdapSyntax copy()
public int hashCode()
AbstractSchemaObjecthashCode in interface SchemaObjecthashCode in class AbstractSchemaObjectObject.equals(Object)public boolean equals(Object o)
equals in interface SchemaObjectequals in class AbstractSchemaObjectpublic void clear()
clear in interface SchemaObjectclear in class AbstractSchemaObjectCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.