|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.schema.AbstractSchemaElement
org.ldaptive.schema.AbstractNamedSchemaElement
org.ldaptive.schema.MatchingRule
public class MatchingRule
Bean for an matching rule schema element.
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
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.schema.AbstractSchemaElement |
|---|
NO_WSP_REGEX, WSP_REGEX |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.ldaptive.schema.AbstractNamedSchemaElement |
|---|
getName, getNames, hasName, isObsolete, setNames, setObsolete |
| Methods inherited from class org.ldaptive.schema.AbstractSchemaElement |
|---|
containsBooleanExtension, equals, getDescription, getExtensions, setDescription, setExtensions |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MatchingRule(String s)
s - oid
public MatchingRule(String oid,
String[] names,
String description,
boolean obsolete,
String syntaxOID,
Extensions extensions)
oid - oidnames - namesdescription - descriptionobsolete - obsoletesyntaxOID - syntax OIDextensions - extensions| Method Detail |
|---|
public String getOID()
public String getSyntaxOID()
public void setSyntaxOID(String s)
s - syntax oid
public static MatchingRule parse(String definition)
throws ParseException
definition - to parse
ParseException - if the supplied definition is invalidpublic String format()
public int hashCode()
hashCode in class AbstractSchemaElementpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||