|
||||||||||
| 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.DITStructureRule
public class DITStructureRule
Bean for a DIT content rule schema element.
DITStructureRuleDescription = LPAREN WSP
ruleid ; rule identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "FORM" SP oid ; NameForm
[ SP "SUP" ruleids ] ; superior rules
extensions WSP RPAREN ; extensions
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.schema.AbstractSchemaElement |
|---|
NO_WSP_REGEX, WSP_REGEX |
| Constructor Summary | |
|---|---|
DITStructureRule(int i)
Creates a new DIT structure rule. |
|
DITStructureRule(int id,
String[] names,
String description,
boolean obsolete,
String nameForm,
int[] superiorRules,
Extensions extensions)
Creates a new DIT structure rule. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
format()
Returns this schema element as formatted string per RFC 4512. |
int |
getID()
Returns the id. |
String |
getNameForm()
Returns the name form. |
int[] |
getSuperiorRules()
Returns the superior rules. |
int |
hashCode()
|
static DITStructureRule |
parse(String definition)
Parses the supplied definition string and creates an initialized DIT structure rule. |
void |
setNameForm(String s)
Sets the name form. |
void |
setSuperiorRules(int[] i)
Sets the superior rules. |
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, getDescription, getExtensions, setDescription, setExtensions |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DITStructureRule(int i)
i - id
public DITStructureRule(int id,
String[] names,
String description,
boolean obsolete,
String nameForm,
int[] superiorRules,
Extensions extensions)
id - idnames - namesdescription - descriptionobsolete - obsoletenameForm - name formsuperiorRules - superior rulesextensions - extensions| Method Detail |
|---|
public int getID()
public String getNameForm()
public void setNameForm(String s)
s - name formpublic int[] getSuperiorRules()
public void setSuperiorRules(int[] i)
i - superior rules
public static DITStructureRule parse(String definition)
throws ParseException
definition - to parse
ParseException - if the supplied definition is invalidpublic String format()
public boolean equals(Object o)
equals in class AbstractSchemaElementpublic int hashCode()
AbstractSchemaElement
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 | |||||||||