|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.tbg.TbgLoop
This class implements a TBG loop operation.
Constructor Summary | |
TbgLoop(TbgData aData)
This constructor creates a TbgLoop object. |
Method Summary | |
void |
endAllowedValuesLoop()
When a allowed_values loop ends, removes its variable from the collection of variables. |
void |
endElemLoop()
When a Instances loop ends, removes its variable from the collection of variables. |
void |
endPropLoop()
When a Properties loop ends, removes its variable from the collection of variables. |
TableRow |
getActElement()
Returns the value of the actElem property. |
java.lang.String |
getAllowedValue(java.lang.String descriptor)
Returns the specified descriptor from the actual allowed_value. |
java.lang.String |
getAttribute(java.lang.String descriptor,
java.lang.String elemName,
java.lang.String attrName)
Returns the required descriptor attribute from the specified element. |
java.lang.String |
getAttributeProperty(java.lang.String descriptor)
Returns the specified descriptor from the actual property. |
int |
getCount(java.lang.String elementName)
Returns the children number of the specified element |
java.lang.String |
getElement(java.lang.String descriptor,
java.lang.String elementName)
Returns the descriptor of the specified element. |
int |
getIter()
Returns the value of the iter property. |
void |
iniAllowedValues(TbgContext aContext,
java.lang.String name,
java.lang.String elemName,
TableRow element)
Initializes a TbgLoop object with the nedded attributes. |
void |
iniElem(TbgContext aContext,
java.lang.String name,
java.lang.String elemName,
TableRow element)
Initializes a TbgLoop object with the nedded attributes. |
void |
iniInhe(TbgContext aContext,
java.lang.String name,
java.lang.String elemName,
TableRow element)
Initializes a TbgLoop object with the nedded attributes. |
void |
iniProp(TbgContext aContext,
java.lang.String name,
java.lang.String elemName,
TableRow element)
Initializes a TbgLoop object with the nedded attributes. |
void |
loop(char[] txt)
Implements a loop operation, creates a new instance of Generator and parses the loop text. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TbgLoop(TbgData aData)
aData
- TbgData The repository manager.Method Detail |
public void endAllowedValuesLoop()
public void endElemLoop()
public void endPropLoop()
public TableRow getActElement()
public java.lang.String getAllowedValue(java.lang.String descriptor) throws WorkbenchException
descriptor
- java.lang.String The descriptor to retrieve.public java.lang.String getAttribute(java.lang.String descriptor, java.lang.String elemName, java.lang.String attrName) throws WorkbenchException
The search begins from the actual element.
descriptor
- java.lang.String The descriptor to look for.elemName
- java.lang.String The element name to search.attrName
- java.lang.String The attribute name to search.public java.lang.String getAttributeProperty(java.lang.String descriptor) throws WorkbenchException
descriptor
- java.lang.String The descriptor to retrieve.public int getCount(java.lang.String elementName) throws WorkbenchException
elementName
- java.lang.String The element to look for.public java.lang.String getElement(java.lang.String descriptor, java.lang.String elementName) throws WorkbenchException
The search begins from the actual element.
descriptor
- java.lang.String The descriptor to return.elementName
- java.lang.String The element to look for.public int getIter()
public void iniAllowedValues(TbgContext aContext, java.lang.String name, java.lang.String elemName, TableRow element) throws WorkbenchException
aContext
- TbgContext Contains the actual context.name
- java.lang.String The loop's variable name.elemName
- java.lang.String The element to loop.element
- TableRow The TableRow from where the loop starts.public void iniElem(TbgContext aContext, java.lang.String name, java.lang.String elemName, TableRow element) throws WorkbenchException
aContext
- TbgContext Contains the actual context .name
- java.lang.String The loop's variable name.elemName
- java.lang.String The element to loop.element
- TableRow The TableRow from where the loop starts.public void iniInhe(TbgContext aContext, java.lang.String name, java.lang.String elemName, TableRow element) throws WorkbenchException
aContext
- TbgContext Contains the actual context .name
- java.lang.String The loop's variable name.elemName
- java.lang.String The element to loop.element
- TableRow The TableRow from where the loop starts.public void iniProp(TbgContext aContext, java.lang.String name, java.lang.String elemName, TableRow element) throws WorkbenchException
aContext
- TbgContext Contains the actual context.name
- java.lang.String The loop's variable name.elemName
- java.lang.String The element to loop.element
- TableRow The TableRow from where the loop starts.public void loop(char[] txt) throws TbgException, WorkbenchException
char[]
- txt The loop text to parse.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |