public class ObjectType
extends java.lang.Object
implements java.io.Serializable
An ObjectType is a lightweight representation of a class of objects defined by a namespace. This class is made final so that it cannot be subclassed.
ObjectEntry,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_container |
protected boolean |
m_filesystem |
protected boolean |
m_isHidden |
protected boolean |
m_isNull |
protected ObjectType[] |
m_parentType |
protected boolean |
m_shortcut |
| Constructor and Description |
|---|
ObjectType(NamespaceSnapin space,
boolean container,
ObjectType[] parentTypes) |
ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container)
Constructs an ObjectType for the specified namespace without the parentTypes
parameter (set to null).
|
ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType parentType)
Constructs an ObjectType for the specified namespace with the parent
the ObjectType.
|
ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType[] parentTypes)
Constructs an ObjectType for the specified namespace with an array of
parentTypes.
|
ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType[] parentTypes,
boolean shortcut)
Constructs an ObjectType for the specified namespace with an array of
parentTypes.
|
ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType parentType,
boolean shortcut)
Constructs an ObjectType for the specified namespace with the parent
the ObjectType.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares this ObjectType to the ObjectType passed in and returns
true if their names and Namespace unique
IDs are the same.
|
AdminNamespace |
getAdminNamespace()
Returns the namespace object in which this ObjectType resides.
|
java.lang.String |
getKey() |
java.lang.String |
getName()
Returns the name of the ObjectType as a String.
|
NamespaceSnapin |
getNamespace()
Returns the namespace object in which this ObjectType resides.
|
ObjectType[] |
getParentTypes()
Returns the parent in an OjectType array.
|
int |
hashCode()
Returns the hash code for this ObjectType for use in hash tables.
|
boolean |
isContainer()
Checks to see if the ObjectType is a container.
|
boolean |
isFileSystem()
Checks to see if the ObjectType is a File System type.
|
boolean |
isHidden() |
boolean |
isNull() |
boolean |
isShortcut() |
void |
setHidden(boolean hide) |
void |
setIsFileSystem(boolean isFileSystem)
Sets this ObjectType to be a File System type.
|
java.lang.String |
toString()
Create a string representation of the ObjectType.
|
protected boolean m_container
protected ObjectType[] m_parentType
protected boolean m_filesystem
protected boolean m_shortcut
protected boolean m_isNull
protected boolean m_isHidden
public ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType parentType)
name - The name of the ObjectType.space - The namespace to which the ObjectType belongs.container - A boolean flag set to true if the ObjectType can
contain other objects, otherwise set to false.parentType - The parent of this ObjectType.public ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType[] parentTypes)
name - The name of the ObjectType.space - The namespace to which the ObjectType belongs.container - A boolean flag set to true if the ObjectType can
contain other objects, otherwise set to false.parentTypes - The array of parentTypes for this ObjectType.public ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container)
name - The name of the ObjectType.space - The namespace to which the ObjectType belongs.container - A boolean flag set to true if the ObjectType can
contain other objects, otherwise set to false.public ObjectType(NamespaceSnapin space, boolean container, ObjectType[] parentTypes)
space - The namespace to which the ObjectType belongs.container - A boolean flag set to true if the ObjectType can
contain other objects, otherwise set to false.parentTypes - The array of parentTypes for this ObjectType.public ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType parentType,
boolean shortcut)
name - The name of the ObjectType.space - The namespace to which the ObjectType belongs.container - A boolean flag set to true if the ObjectType can
contain other objects, otherwise set to false.parentType - The parent of this ObjectType.shortcut - A boolean flag set to true if the ObjectType is
to be used as the type for shortcut entries.public ObjectType(java.lang.String name,
NamespaceSnapin space,
boolean container,
ObjectType[] parentTypes,
boolean shortcut)
name - The name of the ObjectType.space - The namespace to which the ObjectType belongs.container - A boolean flag set to true if the ObjectType can
contain other objects, otherwise set to false.parentTypes - The array of parentTypes for this ObjectType.shortcut - A boolean flag set to true if the ObjectType is
to be used as the type for shortcut entries.public ObjectType[] getParentTypes()
If there is no parent to be returned in the ObjectType array, null can be returned.
public boolean isShortcut()
public final java.lang.String getName()
public boolean isContainer()
public boolean isFileSystem()
public void setIsFileSystem(boolean isFileSystem)
isFileSystem - - A boolean set to true if the ObjectType is a File System type,
otherwise set to false.public final AdminNamespace getAdminNamespace()
public final NamespaceSnapin getNamespace()
public boolean equals(java.lang.Object object)
This is preferred over == for comparing ObjectTypes since there may be two different instances of the same logical ObjectType.
equals in class java.lang.Objectobject - ObjectType passed in to be used in the comparison.public int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String getKey()
public boolean isNull()
public void setHidden(boolean hide)
public boolean isHidden()
public java.lang.String toString()
toString in class java.lang.Object
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.