|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.opnav.ObjectNameBuilder
A utility class that provides the ability to create fully-qualified
Operations Navigator ObjectName
s.
An ObjectName
is a sequence of items. Each item contains a
display name, a type and an index. ObjectNameBuilder
may be used
to build up a new sequence of items, an item at a time. When the sequence is complete,
a call to getObjectName
will return the new ObjectName
.
An existing ObjectName
can also be used as the initial value
of an instance of ObjectNameBuilder
. The methods on
ObjectNameBuilder
can be used to modify the sequence of
items and their values. A new ObjectName
may then be generated
by calling getObjectName
.
ObjectName
Constructor Summary | |
ObjectNameBuilder()
Constructs an ObjectNameBuilder that is
initially empty. |
|
ObjectNameBuilder(java.awt.Frame frame)
THIS METHOD IS CURRENTLY NOT SUPPORTED Constructs an ObjectNameBuilder that is
initially empty. |
|
ObjectNameBuilder(java.awt.Frame frame,
ObjectName obj)
THIS METHOD IS CURRENTLY NOT SUPPORTED Constructs an ObjectNameBuilder using the specified
ObjectName as an initial value. |
|
ObjectNameBuilder(ObjectName obj)
Constructs an ObjectNameBuilder using the specified
ObjectName as an initial value. |
Method Summary | |
void |
addItem(java.lang.String name,
java.lang.String type,
int itemIndex)
Adds an item to this ObjectName . |
ObjectName |
getChildAt(int index)
THIS METHOD IS CURRENTLY NOT SUPPORTED Returns the child node at the input index for the current folder of the current ObjectName Returns null if no child is found |
ObjectName[] |
getChildren()
THIS METHOD IS CURRENTLY NOT SUPPORTED Returns the children nodes for the current folder of the current ObjectName Returns null if no children are found |
int |
getItemIndex(int index)
Returns the index of the item in this ObjectName at the specified position. |
java.lang.String |
getItemName(int index)
Returns the name of the item in this ObjectName at the specified position. |
java.lang.String |
getItemType(int index)
Returns the type of the item in this ObjectName at the specified position. |
ObjectName |
getObjectName()
Returns a new ObjectName constructed using the item
values in this ObjectNameBuilder . |
ObjectName |
getRoot()
THIS METHOD IS CURRENTLY NOT SUPPORTED Returns the root node of the current tree in the Java console Returns null if no root node exists |
int |
getSize()
Returns the number of items that make up this ObjectName . |
void |
insertItem(int index,
java.lang.String name,
java.lang.String type,
int itemIndex)
Inserts an item in this ObjectName at the specified position. |
void |
removeAll()
Removes all items in this ObjectName . |
void |
removeItem(int index)
Removes the item in this ObjectName at the specified position. |
void |
setItem(int index,
java.lang.String name,
java.lang.String type,
int itemIndex)
Sets the value of an item in this ObjectName at the specified position. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ObjectNameBuilder()
ObjectNameBuilder
that is
initially empty.public ObjectNameBuilder(ObjectName obj)
ObjectNameBuilder
using the specified
ObjectName
as an initial value.ObjectName
is null
.ObjectName
is not valid.public ObjectNameBuilder(java.awt.Frame frame)
ObjectNameBuilder
that is
initially empty.public ObjectNameBuilder(java.awt.Frame frame, ObjectName obj)
ObjectNameBuilder
using the specified
ObjectName
as an initial value.ObjectName
is null
.ObjectName
is not valid.Method Detail |
public int getSize()
ObjectName
.public void addItem(java.lang.String name, java.lang.String type, int itemIndex)
ObjectName
.name
- The name of the item.type
- The item type.itemIndex
- The item index.public void insertItem(int index, java.lang.String name, java.lang.String type, int itemIndex)
ObjectName
at the specified position.index
- The position at which the new item should be inserted.name
- The name of the item.type
- The item type.itemIndex
- The item index.getSize
.public void setItem(int index, java.lang.String name, java.lang.String type, int itemIndex)
ObjectName
at the specified position.index
- The position at which the item values should be set.name
- The name of the item.type
- The item type.itemIndex
- The item index.getSize
.public void removeItem(int index)
ObjectName
at the specified position.index
- The position of the item to be removed.getSize
.public void removeAll()
ObjectName
.public java.lang.String getItemName(int index)
ObjectName
at the specified position.index
- The position of the item whose name is to be returned.getSize
.public java.lang.String getItemType(int index)
ObjectName
at the specified position.index
- The position of the item whose type is to be returned.getSize
.public int getItemIndex(int index)
ObjectName
at the specified position.index
- The position of the item whose index is to be returned.getSize
.public ObjectName getObjectName()
ObjectName
constructed using the item
values in this ObjectNameBuilder
.ObjectName
.public java.lang.String toString()
public ObjectName getRoot()
public ObjectName[] getChildren()
ObjectName
Returns null if no children are foundpublic ObjectName getChildAt(int index)
ObjectName
Returns null if no child is foundindex
- The index for the desired child node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |