|
||||||||||
| 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.NameForm
public class NameForm
Bean for a name form schema element.
NameFormDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
SP "OC" SP oid ; structural object class
SP "MUST" SP oids ; attribute types
[ SP "MAY" SP oids ] ; attribute types
extensions WSP RPAREN ; extensions
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.schema.AbstractSchemaElement |
|---|
NO_WSP_REGEX, WSP_REGEX |
| Constructor Summary | |
|---|---|
NameForm(String s)
Creates a new name form. |
|
NameForm(String oid,
String[] names,
String description,
boolean obsolete,
String structuralClass,
String[] requiredAttributes,
String[] optionalAttributes,
Extensions extensions)
Creates a new name form. |
|
| Method Summary | |
|---|---|
String |
format()
Returns this schema element as formatted string per RFC 4512. |
String |
getOID()
Returns the oid. |
String[] |
getOptionalAttributes()
Returns the optional attributes. |
String[] |
getRequiredAttributes()
Returns the required attributes. |
String |
getStructuralClass()
Returns the structural object class. |
int |
hashCode()
|
static NameForm |
parse(String definition)
Parses the supplied definition string and creates an initialized name form. |
void |
setOptionalAttributes(String[] s)
Sets the optional attributes. |
void |
setRequiredAttributes(String[] s)
Sets the required attributes. |
void |
setStructuralClass(String s)
Sets the structural object class. |
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 NameForm(String s)
s - oid
public NameForm(String oid,
String[] names,
String description,
boolean obsolete,
String structuralClass,
String[] requiredAttributes,
String[] optionalAttributes,
Extensions extensions)
oid - oidnames - namesdescription - descriptionobsolete - obsoletestructuralClass - structural object classrequiredAttributes - required attributesoptionalAttributes - optional attributesextensions - extensions| Method Detail |
|---|
public String getOID()
public String getStructuralClass()
public void setStructuralClass(String s)
s - structural object classpublic String[] getRequiredAttributes()
public void setRequiredAttributes(String[] s)
s - required attributespublic String[] getOptionalAttributes()
public void setOptionalAttributes(String[] s)
s - optional attributes
public static NameForm 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 | |||||||||