Package org.ldaptive.schema
Class MatchingRuleUse
java.lang.Object
org.ldaptive.schema.AbstractSchemaElement
org.ldaptive.schema.AbstractNamedSchemaElement
org.ldaptive.schema.MatchingRuleUse
- All Implemented Interfaces:
SchemaElement
Bean for an matching rule use schema element.
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParses a matching rule use definition using a char buffer.static classParses a matching rule use definition using a regular expression. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new matching rule use.MatchingRuleUse(String oid, String[] names, String description, boolean obsolete, String[] appliesAttributeTypes, Extensions extensions) Creates a new matching rule use. -
Method Summary
Modifier and TypeMethodDescriptionbooleanformat()Returns this schema element as formatted string per RFC 4512.String[]Returns the applies attribute types.getOID()Returns the oid.inthashCode()static MatchingRuleUseParses the supplied definition string and creates an initialized matching rule use.voidSets the applies attribute types.toString()Methods inherited from class org.ldaptive.schema.AbstractNamedSchemaElement
getName, getNames, hasName, isObsolete, setNames, setObsoleteMethods 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. -
appliesAttributeTypes
Superior classes.
-
-
Constructor Details
-
MatchingRuleUse
Creates a new matching rule use.- Parameters:
s- oid
-
MatchingRuleUse
public MatchingRuleUse(String oid, String[] names, String description, boolean obsolete, String[] appliesAttributeTypes, Extensions extensions) Creates a new matching rule use.- Parameters:
oid- oidnames- namesdescription- descriptionobsolete- obsoleteappliesAttributeTypes- applies attribute typesextensions- extensions
-
-
Method Details
-
getOID
Returns the oid.- Returns:
- oid
-
getAppliesAttributeTypes
Returns the applies attribute types.- Returns:
- attribute types
-
setAppliesAttributeTypes
Sets the applies attribute types.- Parameters:
s- attribute types
-
parse
Parses the supplied definition string and creates an initialized matching rule use.- Parameters:
definition- to parse- Returns:
- matching rule use
- 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
-
equals
- Overrides:
equalsin classAbstractSchemaElement
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractSchemaElement
-
toString
-