|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.remedy.cmdb.api.CMDBGraphAdjacency
The CMDBGraphAdjacency
class defines an adjacency in a graph
adjacent list.
Field Summary | |
static int |
CMDB_GET_ATTR_ALL
Get all attributes. |
static int |
CMDB_GET_ATTR_NOHIDDEN
Get all attributes that are not hidden. |
static int |
CMDB_GET_ATTR_NONE
Do not get any attributes. |
static int |
CMDB_GRAPH_QUAL_TYPE_NONE
Do not have query specified |
static int |
CMDB_GRAPH_QUAL_TYPE_STRING
The query is a string |
static int |
CMDB_GRAPH_QUAL_TYPE_STRUCT
The query is a QualifierInfo object |
Constructor Summary | |
CMDBGraphAdjacency()
Default constructor. |
|
CMDBGraphAdjacency(CMDBClassNameKey relationClassName,
CMDBClassNameKey objectClassName)
Constructor. |
Method Summary | |
java.lang.String |
getExtensionId()
Gets the extension ID of the class in the adjacency |
java.lang.String[] |
getObjectAttributeNames()
Gets the attribute name for the CMDBGraphAdjacency. |
int |
getObjectAttributeType()
Gets the attribute type of the CMDBGraphAdjacency. |
CMDBClassNameKey |
getObjectClassName()
Gets the name of the class involved in the adjacency. |
java.lang.Object |
getObjectQuery()
Gets the query for the CMDBGraphAdjacency object instance. |
int |
getObjectQueryType()
Gets the type of CMDBGraphAdjacency object qualification |
java.lang.String[] |
getRelationAttributeNames()
Gets the attribute name of the adjacency. |
int |
getRelationAttributeType()
Gets the attribute type of the adjacency. |
CMDBClassNameKey |
getRelationClassName()
Gets the name of the relationship involved in the adjacency. |
java.lang.Object |
getRelationQuery()
Gets the query for the CMDBGraphAdjacency relation instance. |
int |
getRelationQueryType()
Gets the type of CMDBGraphAdjacency relation qualification |
void |
setExtensionId(java.lang.String extensionId)
Sets the extension ID of the CMDBGraphAdjacency object. |
void |
setObjectAttribute(int type)
Sets the types of the attributes to retrieve. |
void |
setObjectAttribute(java.lang.String[] attributeNames)
Sets the names of the attributes retrieve. |
void |
setObjectQuery(java.lang.Object objectQuery)
Sets the query for the CMDBGraphAdjacency object instance |
void |
setRelationAttribute(int type)
Sets the type of the attributes to be retrieved. |
void |
setRelationAttribute(java.lang.String[] attributeNames)
Sets the names of the attributes to be retrieved. |
void |
setRelationQuery(java.lang.Object relationQuery)
Sets the query for the CMDBGraphAdjacency relation instance |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CMDB_GET_ATTR_NONE
public static final int CMDB_GET_ATTR_NOHIDDEN
public static final int CMDB_GET_ATTR_ALL
public static final int CMDB_GRAPH_QUAL_TYPE_NONE
public static final int CMDB_GRAPH_QUAL_TYPE_STRING
public static final int CMDB_GRAPH_QUAL_TYPE_STRUCT
Constructor Detail |
public CMDBGraphAdjacency()
public CMDBGraphAdjacency(CMDBClassNameKey relationClassName, CMDBClassNameKey objectClassName)
relationClassName
- the name of the relationship involved in the
adjacencyobjectClassName
- the name of the class involved in the adjacencyMethod Detail |
public CMDBClassNameKey getRelationClassName()
public java.lang.Object getRelationQuery()
QualifierInfo
object. Please
call getRelationQueryType()
to retrieve the type.public int getRelationQueryType()
CMDB_GRAPH_QUAL_TYPE_NONE
or
CMDB_GRAPH_QUAL_TYPE_STRING
or
CMDB_GRAPH_QUAL_TYPE_STRUCT
public int getRelationAttributeType()
public java.lang.String[] getRelationAttributeNames()
public CMDBClassNameKey getObjectClassName()
public java.lang.Object getObjectQuery()
QualifierInfo
object. Please
call getObjectQueryType()
to retrieve the type.public int getObjectQueryType()
CMDB_GRAPH_QUAL_TYPE_NONE
or
CMDB_GRAPH_QUAL_TYPE_STRING
or
CMDB_GRAPH_QUAL_TYPE_STRUCT
public int getObjectAttributeType()
public java.lang.String[] getObjectAttributeNames()
public java.lang.String getExtensionId()
public void setRelationQuery(java.lang.Object relationQuery)
relationQuery
- a query object to qualify relation instance
returned. The query object can be either a string or a
QualifierInfo
object. Exception will be
thrown if neither of the above two types of qualifiction is provided.public void setRelationAttribute(int type)
type
- attribute type. It can be one of the following
CMDB_GET_ATTR_NONE
, or
CMDB_GET_ATTR_NOHIDDEN
, or
CMDB_GET_ATTR_ALL
java.lang.IllegalArgumentException
- if the type is not one of the above
typespublic void setRelationAttribute(java.lang.String[] attributeNames)
attributeNames
- the names of the attributes to retrievepublic void setObjectQuery(java.lang.Object objectQuery)
objectQuery
- a query to qualify object instance returned.
The query can be either a string or a
QualifierInfo
object. Exception will be
thrown if neither of the above two types of qualification is provided.public void setObjectAttribute(int type)
type
- attribute type. It can be one of the following
CMDB_GET_ATTR_NONE
, or
CMDB_GET_ATTR_NOHIDDEN
, or
CMDB_GET_ATTR_ALL
java.lang.IllegalArgumentException
- if the type is not one of the above
typespublic void setObjectAttribute(java.lang.String[] attributeNames)
attributeNames
- the names of attributes to retrievepublic void setExtensionId(java.lang.String extensionId)
extensionId
- a unique identifier for this graph node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |