public abstract class ObjectRef extends Object
Creating a reference instance does not execute anything on the DOORS client, it is just a way to get a pointer to an element on which commands are executed. The reference is only resolved to the actual element by the time the command is executed and may result in an element not being found.
SetAttributeValueFragment
Constructor and Description |
---|
ObjectRef() |
Modifier and Type | Method and Description |
---|---|
static ObjectRef |
absoluteNumber(int absoluteNumber)
Returns a reference to the object identified by the specified absolute number.
|
static ObjectRef |
cell(ObjectRef table,
int row,
int column)
Returns a reference to the table cell object, identified by the specified containing table
and its position in the table.
|
static ObjectRef |
created(ObjectFragment fragment)
Returns a reference to an object that is going to be created
by the execution of the specified fragment.
|
static ObjectRef |
parent(ObjectRef child)
Returns a reference to the parent object of the specified object.
|
static ObjectRef |
url(String url)
Returns a reference to the object identified by the specified DOORS URL.
|
public static ObjectRef absoluteNumber(int absoluteNumber)
absoluteNumber
- the DOORS absolute number of the object.public static ObjectRef created(ObjectFragment fragment)
ObjectRef
instance
returned by this method are executed in the same command
as the one in which the specified fragment belongs to.fragment
- the fragment that creates an object.public static ObjectRef cell(ObjectRef table, int row, int column)
table
- the containing table.row
- the row in which the cell is contained.column
- the column in which the cell is contained.public static ObjectRef url(String url)
url
- the DOORS URL of the object.