|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.application.console.snapin.ObjectEntry
Defines an entry that represents each object inside of a namespace.
An ObjectEntry is a lightweight representation of a named object in a namespace. This class is made final so that it cannot be subclassed. Each ObjectEntry contains a reference to an ObjectType.
ObjectType
,
Serialized FormConstructor Summary | |
ObjectEntry(java.lang.String name,
ObjectType type)
Contructs an ObjectEntry of the specified ObjectType. |
|
ObjectEntry(java.lang.String name,
ObjectType type,
long objectFlags)
Contructs an ObjectEntry of the specified ObjectType with objectFlags. |
|
ObjectEntry(java.lang.String name,
ObjectType type,
ObjectEntry parent)
Contructs an ObjectEntry of the specified ObjectType with the object parent. |
|
ObjectEntry(java.lang.String name,
ObjectType type,
ObjectEntry parent,
long objectFlags)
Contructs an ObjectEntry of the specified ObjectType with objectFlags and object parent. |
Method Summary | |
void |
addSubType(ObjectType type)
Adds an ObjectType to the array of subtypes for this entry. |
boolean |
equals(java.lang.Object object)
Compares this ObjectEntry to the ObjectEntry passed in and returns true if their full names, ObjectType names, and namespace unique IDs are the same. |
java.lang.String |
getFullName()
Returns the object's full name as a String. |
java.lang.String |
getName()
Returns the object's name as a String. |
long |
getObjectFlags()
Returns the flags associated with an object. |
ObjectType |
getObjectType()
Returns the object's class or type as an ObjectType. |
ObjectType[] |
getObjectTypes()
Deprecated. As of ConsoleOne version 1.2, use getSubTypes() instead. |
ObjectEntry |
getParent()
Returns the specified ObjectEntry's parent object. |
ObjectEntry |
getRoot()
Returns the root object in the lineage of this ObjectEntry. |
ObjectType[] |
getSubTypes()
Returns the subtypes of this ObjectEntry. |
int |
hashCode()
Returns the hash code for this ObjectEntry for use in hash tables. |
boolean |
removeSubType(ObjectType type)
Removes an ObjectType from the array of subtypes for this entry. |
void |
setObjectFlags(long objectFlags)
Sets the flags to be associated with an object. |
void |
setSubTypes(ObjectType[] types)
Sets all of the subtypes for this ObjectEntry. |
java.lang.String |
toString()
Returns the object's name as a String. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectEntry(java.lang.String name, ObjectType type)
name
- The name (RDN) of the object.type
- The ObjectType of the object.public ObjectEntry(java.lang.String name, ObjectType type, long objectFlags)
name
- The name (RDN) of the object.type
- The ObjectType of the object.objectFlags
- The flags associated with the object.public ObjectEntry(java.lang.String name, ObjectType type, ObjectEntry parent)
name
- The name (RDN) of the object.type
- The ObjectType of the object.parent
- The parent of the object.public ObjectEntry(java.lang.String name, ObjectType type, ObjectEntry parent, long objectFlags)
name
- The name (RDN) of the object.type
- The ObjectType of the object.parent
- The parent of the object.objectFlags
- The flags associated with the object.Method Detail |
public void addSubType(ObjectType type)
type
- The ObjectType to add as a subtype for this entry.public boolean equals(java.lang.Object object)
This is preferred over == for comparing ObjectEntries because there may be two different instances of the same logical ObjectEntry.
object
- The ObjectEntry passed in to be used in the comparison.
public java.lang.String getFullName()
public java.lang.String getName()
public long getObjectFlags()
setObjectFlags(long)
public ObjectType getObjectType()
public ObjectType[] getObjectTypes()
getSubTypes()
instead.
public ObjectEntry getParent()
When the getParent() method is called it assumes the first ObjectType is being used. If there is no parent to return, ObjectEntry returns null.
public ObjectEntry getRoot()
The root is defined as the object with a null parent or the object that returns a parent object from another namespace.
public ObjectType[] getSubTypes()
public int hashCode()
public boolean removeSubType(ObjectType type)
type
- The ObjectType to remove as a subtype for this entry.
public void setObjectFlags(long objectFlags)
objectFlags
- The flags to be associated with the object.getObjectFlags()
public void setSubTypes(ObjectType[] types)
types
- The array of ObjectTypes that represent this entry's subtypes.public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |