public class MatchingRule extends AbstractNamedSchemaElement
MatchingRuleDescription = LPAREN WSP numericoid ; object identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active SP "SYNTAX" SP numericoid ; assertion syntax 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.
|
private String |
syntaxOID
Syntax OID.
|
NO_WSP_REGEX, WSP_REGEX
Constructor and Description |
---|
MatchingRule(String s)
Creates a new matching rule.
|
MatchingRule(String oid,
String[] names,
String description,
boolean obsolete,
String syntaxOID,
Extensions extensions)
Creates a new matching rule.
|
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.
|
String |
getSyntaxOID()
Returns the syntax oid.
|
int |
hashCode() |
static MatchingRule |
parse(String definition)
Parses the supplied definition string and creates an initialized matching rule.
|
void |
setSyntaxOID(String s)
Sets the syntax oid.
|
String |
toString() |
getName, getNames, hasName, isObsolete, setNames, setObsolete
containsBooleanExtension, getDescription, getExtensions, setDescription, setExtensions
private static final int HASH_CODE_SEED
private static final Pattern DEFINITION_PATTERN
private final String oid
private String syntaxOID
public MatchingRule(String s)
s
- oidpublic MatchingRule(String oid, String[] names, String description, boolean obsolete, String syntaxOID, Extensions extensions)
oid
- oidnames
- namesdescription
- descriptionobsolete
- obsoletesyntaxOID
- syntax OIDextensions
- extensionspublic String getOID()
public String getSyntaxOID()
public void setSyntaxOID(String s)
s
- syntax oidpublic static MatchingRule 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.