Package org.ldaptive.schema
Class Syntax
java.lang.Object
org.ldaptive.schema.AbstractSchemaElement
org.ldaptive.schema.Syntax
- All Implemented Interfaces:
SchemaElement
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 class
Parses a syntax definition using a char buffer.static class
Parses a syntax definition using a regular expression. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
hash code seed.private final String
OID. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.ldaptive.schema.AbstractSchemaElement
containsBooleanExtension, getDescription, getExtensions, setDescription, setExtensions
-
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
-
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:SchemaElement
Returns this schema element as formatted string per RFC 4512.- Returns:
- formatted string
-
equals
- Overrides:
equals
in classAbstractSchemaElement
-
hashCode
public int hashCode()- Specified by:
hashCode
in classAbstractSchemaElement
-
toString
-