|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bmc.cmdb.api.CMDBGraphAdjacency
public class CMDBGraphAdjacency
The CMDBGraphAdjacency
class allows you to define an
adjacent object (node).
Field Summary | |
---|---|
static int |
CMDB_GET_ATTR_ALL
Specifies that all attributes are retrieved. |
static int |
CMDB_GET_ATTR_NOHIDDEN
Specifies that hidden attributes are not retrieved. |
static int |
CMDB_GET_ATTR_NONE
Specifies that no attributes are retrieved. |
static int |
CMDB_GRAPH_QUAL_TYPE_NONE
Specifies that the qualifier type is none. |
static int |
CMDB_GRAPH_QUAL_TYPE_STRING
Specifies that the qualifier type is string. |
static int |
CMDB_GRAPH_QUAL_TYPE_STRUCT
Specifies that the qualifier type is object. |
Constructor Summary | |
---|---|
CMDBGraphAdjacency()
Default constructor that creates an empty CMDBGraphAdjacency object. |
|
CMDBGraphAdjacency(CMDBClassNameKey relationClassName,
CMDBClassNameKey objectClassName)
Constructor that creates a CMDBGraphAdjacency object with the specified class name and namespace of the relationship class and the adjacent CI object (node). |
Method Summary | |
---|---|
java.lang.String |
getExtensionId()
Gets the extension ID for the CMDBGraphAdjacency object. |
java.lang.String[] |
getObjectAttributeNames()
Gets the list of attributes for the CMDBGraphAdjacency object. |
int |
getObjectAttributeType()
Gets the attribute type of the CMDBGraphAdjacency object. |
CMDBClassNameKey |
getObjectClassName()
Gets the class name and namespace of the CMDBGraphAdjacency object. |
java.lang.Object |
getObjectQuery()
Gets the query for the CMDBGraphAdjacency object instance. |
int |
getObjectQueryType()
Gets the qualifier type for the CMDBGraphAdjacency object. |
java.lang.String[] |
getRelationAttributeNames()
Gets the list of related attributes. |
int |
getRelationAttributeType()
Gets the attribute type of the relationship. |
CMDBClassNameKey |
getRelationClassName()
Gets the class name and namespace of the class that makes up the relationship. |
java.lang.Object |
getRelationQuery()
Gets the query used to qualify the relationship. |
int |
getRelationQueryType()
Gets the qualifier type used to qualify the relationship. |
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 to retrieve. |
void |
setObjectQuery(java.lang.Object objectQuery)
Sets the query for the CMDBGraphAdjacency object. |
void |
setRelationAttribute(int type)
Sets the type of the relation attributes to be retrieved. |
void |
setRelationAttribute(java.lang.String[] attributeNames)
Sets the names of the relation attributes to be retrieved. |
void |
setRelationQuery(java.lang.Object relationQuery)
Sets the query for the CMDBGraphAdjacency object. |
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
- name of the class that makes up the relationshipobjectClassName
- class name of the adjacent CI object (node)Method Detail |
---|
public CMDBClassNameKey getRelationClassName()
public java.lang.Object getRelationQuery()
QualifierInfo
object.
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.
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. An exception will be
thrown if neither of the above two types of qualification 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 provided 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 the object returned.
The query can be either a string or a
QualifierInfo
object. An 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 provided is not one of
the above typespublic void setObjectAttribute(java.lang.String[] attributeNames)
attributeNames
- the names of the 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 |