|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.AbstractSchemaObject
public abstract class AbstractSchemaObject
The abstract base class for all schema object types.
Field Summary | |
---|---|
protected String |
description
a short description of this SchemaObject |
protected boolean |
isObsolete
whether or not this SchemaObject is active |
protected String[] |
names
a human readible identifiers for this SchemaObject |
protected String |
oid
a numeric object identifier |
Constructor Summary | |
---|---|
protected |
AbstractSchemaObject(String oid)
Creates an abstract SchemaObject. |
protected |
AbstractSchemaObject(String oid,
boolean isObsolete)
Creates an abstract SchemaObject. |
protected |
AbstractSchemaObject(String oid,
String description)
Creates an abstract SchemaObject. |
protected |
AbstractSchemaObject(String oid,
String[] names)
Creates an abstract SchemaObject. |
protected |
AbstractSchemaObject(String oid,
String[] names,
boolean isObsolete)
Creates an abstract SchemaObject. |
protected |
AbstractSchemaObject(String oid,
String[] names,
boolean isObsolete,
String description)
Creates an abstract SchemaObject. |
protected |
AbstractSchemaObject(String oid,
String name,
boolean isObsolete)
Creates an abstract SchemaObject. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
If the object implements SchemaObject and has the same OID as this SchemaObject then they are considered equal. |
String |
getDescription()
Gets a short description about this SchemaObject. |
String |
getName()
Gets the first name in the set of short names for this SchemaObject if any exists for it. |
String[] |
getNames()
Gets short names for this SchemaObject if any exists for it. |
String |
getOid()
Gets usually what is the numeric object identifier assigned to this SchemaObject. |
int |
hashCode()
Based on the hashCode of the oid property. |
boolean |
isObsolete()
Gets whether or not this SchemaObject has been inactivated. |
protected void |
setDescription(String description)
Sets the brief description for this SchemaObject. |
protected void |
setNames(String[] names)
Sets the human readable names for this SchemaObject. |
protected void |
setObsolete(boolean obsolete)
Sets whether or not this SchemaObject is inactived. |
String |
toString()
Gets the String for the OID of this SchmeaObject. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final String oid
protected boolean isObsolete
protected String[] names
protected String description
Constructor Detail |
---|
protected AbstractSchemaObject(String oid)
oid
- the numeric object identifier (OID)
NullPointerException
- if oid is nullSchemaObject.getOid()
,
MatchingRuleUse
protected AbstractSchemaObject(String oid, String[] names)
oid
- the numeric object identifier (OID)names
- the human readable names for this SchemaObject
NullPointerException
- if oid is nullprotected AbstractSchemaObject(String oid, String[] names, boolean isObsolete)
oid
- the numeric object identifier (OID)names
- the human readable names for this SchemaObjectisObsolete
- true if this object is inactive, false if active
NullPointerException
- if oid is nullprotected AbstractSchemaObject(String oid, String name, boolean isObsolete)
oid
- the numeric object identifier (OID)name
- the first human readable name for this SchemaObjectisObsolete
- true if this object is inactive, false if active
NullPointerException
- if oid is nullprotected AbstractSchemaObject(String oid, boolean isObsolete)
oid
- the numeric object identifier (OID)isObsolete
- true if this object is inactive, false if active
NullPointerException
- if oid is nullprotected AbstractSchemaObject(String oid, String description)
oid
- the numeric object identifier (OID)description
- a brief description for the SchemaObject
NullPointerException
- if oid is nullprotected AbstractSchemaObject(String oid, String[] names, boolean isObsolete, String description)
oid
- the numeric object identifier (OID)names
- the human readable names for this SchemaObjectisObsolete
- true if this object is inactive, false if activedescription
- a brief description for the SchemaObject
NullPointerException
- if oid is nullMethod Detail |
---|
public String getOid()
SchemaObject
getOid
in interface SchemaObject
SchemaObject.getOid()
public boolean isObsolete()
SchemaObject
isObsolete
in interface SchemaObject
SchemaObject.isObsolete()
public String[] getNames()
SchemaObject
getNames
in interface SchemaObject
SchemaObject.getNames()
public String getName()
SchemaObject
getName
in interface SchemaObject
SchemaObject.getName()
public String getDescription()
SchemaObject
getDescription
in interface SchemaObject
SchemaObject.getDescription()
protected void setObsolete(boolean obsolete)
obsolete
- true if this object is inactive, false if it is in useprotected void setNames(String[] names)
names
- the human readable names for this SchemaObjectprotected void setDescription(String description)
description
- the brief description for this SchemaObjectpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object to test for equality
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |