Package org.ldaptive.schema
Class Syntax
- All Implemented Interfaces:
Freezable,SchemaElement<String>
Bean for an attribute syntax schema element.
SyntaxDescription = LPAREN WSP
numericoid ; object identifier
[ SP "DESC" SP qdstring ] ; description
extensions WSP RPAREN ; extensions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParses a syntax definition using a char buffer.static classCreates a string representation of a syntax.static classParses a syntax definition using a regular expression. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final inthash code seed.private final StringOID. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanformat()Returns this schema element as formatted string per RFC 4512.format(SchemaElementFormatter<Syntax> formatter) Returns a string representation of this element.Returns the key for this element.getOID()Returns the oid.inthashCode()static SyntaxParses the supplied definition string and creates an initialized attribute syntax.toString()Methods inherited from class org.ldaptive.schema.AbstractSchemaElement
containsBooleanExtension, freeze, getDescription, getExtensions, setDescription, setExtensionsMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, isFrozen
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
oid
OID.
-
-
Constructor Details
-
Syntax
Creates a new attribute syntax.- Parameters:
s- oid
-
Syntax
Creates a new attribute syntax.- Parameters:
oid- oiddescription- descriptionextensions- extensions
-
-
Method Details
-
getElementKey
Description copied from interface:SchemaElementReturns the key for this element. Typically, an OID but may also be an integer.- Returns:
- element key
-
getOID
Returns the oid.- Returns:
- oid
-
parse
Parses the supplied definition string and creates an initialized attribute syntax.- Parameters:
definition- to parse- Returns:
- attribute syntax
- Throws:
SchemaParseException- if the supplied definition is invalid
-
format
Description copied from interface:SchemaElementReturns this schema element as formatted string per RFC 4512.- Returns:
- formatted string
-
format
Returns a string representation of this element.- Parameters:
formatter- to format this element- Returns:
- formatted schema element
-
equals
- Overrides:
equalsin classAbstractSchemaElement<String>
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractSchemaElement<String>
-
toString
-