|
||||||||||
| 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.ObjectClass
public class ObjectClass
Bean for an object class schema element.
ObjectClassDescription = LPAREN WSP
numericoid ; object identifier
[ SP "NAME" SP qdescrs ] ; short names (descriptors)
[ SP "DESC" SP qdstring ] ; description
[ SP "OBSOLETE" ] ; not active
[ SP "SUP" SP oids ] ; superior object classes
[ SP kind ] ; kind of class
[ SP "MUST" SP oids ] ; attribute types
[ SP "MAY" SP oids ] ; attribute types
extensions WSP RPAREN
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.schema.AbstractSchemaElement |
|---|
NO_WSP_REGEX, WSP_REGEX |
| Constructor Summary | |
|---|---|
ObjectClass(String s)
Creates a new object class. |
|
ObjectClass(String oid,
String[] names,
String description,
boolean obsolete,
String[] superiorClasses,
ObjectClassType objectClassType,
String[] requiredAttributes,
String[] optionalAttributes,
Extensions extensions)
Creates a new object class. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
format()
Returns this schema element as formatted string per RFC 4512. |
ObjectClassType |
getObjectClassType()
Returns the object class type. |
String |
getOID()
Returns the oid. |
String[] |
getOptionalAttributes()
Returns the optional attributes. |
String[] |
getRequiredAttributes()
Returns the required attributes. |
String[] |
getSuperiorClasses()
Returns the superior classes. |
int |
hashCode()
|
static ObjectClass |
parse(String definition)
Parses the supplied definition string and creates an initialized object class. |
void |
setObjectClassType(ObjectClassType type)
Sets the object class type. |
void |
setOptionalAttributes(String[] s)
Sets the optional attributes. |
void |
setRequiredAttributes(String[] s)
Sets the required attributes. |
void |
setSuperiorClasses(String[] s)
Sets the superior classes. |
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 ObjectClass(String s)
s - oid
public ObjectClass(String oid,
String[] names,
String description,
boolean obsolete,
String[] superiorClasses,
ObjectClassType objectClassType,
String[] requiredAttributes,
String[] optionalAttributes,
Extensions extensions)
oid - oidnames - namesdescription - descriptionobsolete - obsoletesuperiorClasses - superior classesobjectClassType - object class typerequiredAttributes - required attributesoptionalAttributes - optional attributesextensions - extensions| Method Detail |
|---|
public String getOID()
public String[] getSuperiorClasses()
public void setSuperiorClasses(String[] s)
s - superior classespublic ObjectClassType getObjectClassType()
public void setObjectClassType(ObjectClassType type)
type - object class typepublic String[] getRequiredAttributes()
public void setRequiredAttributes(String[] s)
s - required attributespublic String[] getOptionalAttributes()
public void setOptionalAttributes(String[] s)
s - optional attributes
public static ObjectClass 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 | |||||||||