|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectNvdmAPI.NvdmObject
Class representing an object (i.e., class instance) in the Radia database.
| Constructor Summary | |
NvdmObject(java.lang.String file,
java.lang.String dom,
java.lang.String clss,
java.lang.String inst)
Creates a new (empty) object. |
|
| Method Summary | |
void |
add(NvdmVariable var)
Adds a variable to the object. |
void |
dump(java.io.PrintStream where)
Dumps the contents of the object to a stream. |
java.lang.String |
getClss()
Returns the class name this object was created for. |
java.lang.String |
getClssFriendly()
Returns the friendly (long) class name for this object. |
java.lang.String |
getDate()
Returns the datestamp for this object. |
java.lang.String |
getDomain()
Returns the domain name this object was created for. |
java.lang.String |
getFile()
Returns the file name this object was created for. |
java.lang.String |
getName()
Returns the instance name of this object. |
int |
getRC()
Returns the error code of the operation that created this object. |
java.lang.String |
getTime()
Returns the timestamp for this object. |
NvdmVariable |
getVariable(int index)
Returns a variable of this object. |
NvdmVariable |
getVariable(java.lang.String varName)
Returns a variable of this object. |
NvdmVariable |
getVariable(java.lang.String varName,
int relIdx)
Returns a variable of this object. |
int |
getVariableCount()
Returns the number of variables in this object. |
java.lang.String |
getVariableDataString(java.lang.String varName)
Returns the actual value of the specified variable. |
java.util.Enumeration |
getVariables()
Returns an Enumeration of the currently contained variables.
|
boolean |
isOk()
Tests if operation completed successfully. |
int |
updateVariable(java.lang.String varName,
int relIdx,
java.lang.String varValue)
Modifies the actual value of a variable. |
int |
updateVariable(java.lang.String varName,
java.lang.String varValue)
Modifies the actual value of a variable. |
boolean |
variableExists(java.lang.String varName)
Checks for the existence of a variable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NvdmObject(java.lang.String file,
java.lang.String dom,
java.lang.String clss,
java.lang.String inst)
file, dom, clss,
and inst, where inst is the object's short
instance name (unique, maximum of 32 characters).
file - the filedom - the domainclss - the classinst - the instance name| Method Detail |
public void add(NvdmVariable var)
NvdmVariable
to be added must be defined as an attribute of the corresponding
class in the Radia database (note that this method does not change
the class definition!).
var - the variable to be addedpublic java.lang.String getName()
public java.lang.String getClss()
public java.lang.String getClssFriendly()
public java.lang.String getFile()
public java.lang.String getDomain()
public java.lang.String getTime()
public java.lang.String getDate()
public int getRC()
RTE.getErrorText)public boolean isOk()
getRC to be 0.
public java.util.Enumeration getVariables()
Enumeration of the currently contained variables.
The result enumerates NvdmVariable objects. If
the object was read from the Radia database, the enumeration will also
contain variables usually hidden by the Radia System Explorer (e.g.,
ZOBJDATE and ZOBJTIME).
Enumeration of NvdmVariable objects
public int updateVariable(java.lang.String varName,
java.lang.String varValue)
varName (e.g., for _ALWAYS_ connections,
the first variable found will be modified. If you need to
specifically address another variable of that name, use the
updateVariable method with the relIdx
attribute.
varName - name of the variable (max. 8 characters)varValue - the new value of the variable
RTE.getErrorText)
public int updateVariable(java.lang.String varName,
int relIdx,
java.lang.String varValue)
relIdx argument allows to address a specific
variable in case the class defines more than one attribute with this
varName (e.g., for _ALWAYS_ connections).
relIdx specifies the relative index (starting with 0)
of the variable in the list of variable with the name
varName. For example, to address the 3rd
_ALWAYS_ variable, call
updateVariable("_ALWAYS_", 2, newValue)
varName - name of the variable (max. 8 characters)relIdx - relative index of the variable in the list of variables
with the same namevarValue - the new value of the variable
RTE.getErrorText)public NvdmVariable getVariable(int index)
ZOBJDATE and ZOBJTIME). In case of an error
(e.g., if the variable does not exist), an "empty" variable object
will be returned which just contains an error code.
index - the index (starting with 1) of the requested variable
public boolean variableExists(java.lang.String varName)
varName - the variable to be checked
true if the variable exists in this object,
false if it does not existpublic NvdmVariable getVariable(java.lang.String varName)
_ALWAYS_
connections), the first variable found will be returned. If you need to
specifically address another variable of that name, use the
getVariable method with the relIdx
attribute.
varName - the name of the requested variable
public NvdmVariable getVariable(java.lang.String varName,
int relIdx)
relIdx.
relIdx is the index (starting with 0) of the requested variable
in the list of variables with the same name. This allows for addressing
a specific variable if the object's class definition specifies
more than one variable with this name (e.g., for _ALWAYS_
connections).
varName - the name of the requested variablerelIdx - the relative index (starting with 0) of the variable in the
list of variables with the same name
public java.lang.String getVariableDataString(java.lang.String varName)
NvdmVariable object
and then reading its contents._ALWAYS_ connections), the first variable
found will be returned. If you need to specifically address another variable
of that name, use the getVariable method with the relIdx
attribute and then read this variable's contents via
NvdmVariable.getDataString.
varName - the name of the requested variable
public int getVariableCount()
ZOBJDATE and
ZOBJTIME).
public void dump(java.io.PrintStream where)
where - the stream where to dump the information
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||