public class MatchingRuleUse extends AbstractNamedSchemaElement
MatchingRuleUseDescription = LPAREN WSP numericoid ; object identifier [ SP "NAME" SP qdescrs ] ; short names (descriptors) [ SP "DESC" SP qdstring ] ; description [ SP "OBSOLETE" ] ; not active SP "APPLIES" SP oids ; attribute types extensions WSP RPAREN ; extensions
Modifier and Type | Field and Description |
---|---|
private String[] |
appliesAttributeTypes
Superior classes.
|
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 |
---|
MatchingRuleUse(String s)
Creates a new matching rule use.
|
MatchingRuleUse(String oid,
String[] names,
String description,
boolean obsolete,
String[] appliesAttributeTypes,
Extensions extensions)
Creates a new matching rule use.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
format()
Returns this schema element as formatted string per RFC 4512.
|
String[] |
getAppliesAttributeTypes()
Returns the applies attribute types.
|
String |
getOID()
Returns the oid.
|
int |
hashCode() |
static MatchingRuleUse |
parse(String definition)
Parses the supplied definition string and creates an initialized matching rule use.
|
void |
setAppliesAttributeTypes(String[] s)
Sets the applies attribute types.
|
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[] appliesAttributeTypes
public MatchingRuleUse(String s)
s
- oidpublic MatchingRuleUse(String oid, String[] names, String description, boolean obsolete, String[] appliesAttributeTypes, Extensions extensions)
oid
- oidnames
- namesdescription
- descriptionobsolete
- obsoleteappliesAttributeTypes
- applies attribute typesextensions
- extensionspublic String getOID()
public String[] getAppliesAttributeTypes()
public void setAppliesAttributeTypes(String[] s)
s
- attribute typespublic static MatchingRuleUse 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.