public class Syntax extends AbstractSchemaElement
SyntaxDescription = LPAREN WSP numericoid ; object identifier [ SP "DESC" SP qdstring ] ; description extensions WSP RPAREN ; extensions
Modifier and Type | Field and Description |
---|---|
private static Pattern |
DEFINITION_PATTERN
Pattern to match definitions.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private String |
oid
OID.
|
NO_WSP_REGEX, WSP_REGEX
Constructor and Description |
---|
Syntax(String s)
Creates a new attribute syntax.
|
Syntax(String oid,
String description,
Extensions extensions)
Creates a new attribute syntax.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
format()
Returns this schema element as formatted string per RFC 4512.
|
String |
getOID()
Returns the oid.
|
int |
hashCode() |
static Syntax |
parse(String definition)
Parses the supplied definition string and creates an initialized attribute syntax.
|
String |
toString() |
containsBooleanExtension, getDescription, getExtensions, setDescription, setExtensions
private static final int HASH_CODE_SEED
private static final Pattern DEFINITION_PATTERN
private final String oid
public Syntax(String s)
s
- oidpublic Syntax(String oid, String description, Extensions extensions)
oid
- oiddescription
- descriptionextensions
- extensionspublic String getOID()
public static Syntax parse(String definition) throws ParseException
definition
- to parseParseException
- if the supplied definition is invalidpublic String format()
SchemaElement
public boolean equals(Object o)
equals
in class AbstractSchemaElement
public int hashCode()
hashCode
in class AbstractSchemaElement
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.