|
|||||||||
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.TbgData
This class implements a TBG data manager.
Field Summary | |
static boolean |
duplicatedReferencesWarningShowed
Aux var that indicates if the warning message due to duplicated references has been already shown |
Constructor Summary | |
TbgData()
This constructor creates a TbgData object. |
Method Summary | |
java.lang.String |
getAllowedValuesDescriptor(TableRow allowed_value,
java.lang.String descriptor)
Returns the descriptor value from the specified allowed_value. |
TableRow[] |
getAllowedValuesList(TableRow attribute,
java.lang.String attributeName)
Returns the allowed_values list that belong to the specified Attribute. |
java.lang.String |
getAttributeDescriptor(TableRow instance,
java.lang.String instanceName,
java.lang.String attrName,
java.lang.String descriptor)
Returns the descriptor value from the specified Attribute. |
int |
getElemChildCount(TableRow element,
java.lang.String elementName)
Returns the number of children instances that compose the specified instance or the number of entities that compose the specified entity |
TableRow |
getElement(TableRow elem,
java.lang.String elementPath)
Returns the instance or the entity required from the specified TableRow. |
java.lang.String |
getElementDescriptor(TableRow instance,
java.lang.String instanceName,
java.lang.String descriptor)
Returns the descriptor value from the specified Instance or Entity or Allowed_value. |
java.lang.String |
getElementDescriptor(TableRow elem,
TableRow parent,
java.lang.String elemName,
java.lang.String descriptor)
Returns the descriptor value from the specified element (Instance or Entity or Allowed_value). |
TableRow[] |
getElementList(TableRow instance,
java.lang.String instanceName)
Returns the children Instances that compose the specified Instance or the entities that compose the specified Entity. |
TableRow[] |
getInheritanceElementList(TableRow entity,
java.lang.String entityName)
Returns the children entities that extends the specified entity. |
TableRow |
getParentElement(TableRow elem,
java.lang.String elementPath)
Returns the parent instance or the parent entity required from the specified TableRow. |
TableRow[] |
getPropertiesList(TableRow instance,
java.lang.String instanceName)
Returns the Properties that belong to the specified Instance or the Attributes that belong to the specified Entity. |
java.lang.String |
getPropertyDescriptor(TableRow property,
java.lang.String descriptor)
Returns the descriptor value from the specified Property or Attribute. |
TableRow |
getReferredInstance(TableRow instance,
java.lang.String name)
Returns the referred instance to the property of the specified instance. |
TableRow |
getReferredInstance(TableRow instance,
TableRow property)
Returns the referred instance to the property. |
void |
setRoot(TableRow aInstance)
Sets the root instance. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static boolean duplicatedReferencesWarningShowed
Constructor Detail |
public TbgData()
Method Detail |
public java.lang.String getAllowedValuesDescriptor(TableRow allowed_value, java.lang.String descriptor) throws WorkbenchException
allowed_value
- com.ibm.dse.tools.workbench.base.TableRow The allowed_value from where the search begins.descriptor
- java.lang.String The descriptor to retrieve.public TableRow[] getAllowedValuesList(TableRow attribute, java.lang.String attributeName) throws WorkbenchException
attribute
- com.ibm.dse.tools.workbench.base.TableRow The Attribute from where
the search begins.attributeName
- java.lang.String The Attribute name to search for.public java.lang.String getAttributeDescriptor(TableRow instance, java.lang.String instanceName, java.lang.String attrName, java.lang.String descriptor) throws WorkbenchException
instance
- com.ibm.dse.tools.workbench.base.TableRow The Instance from where the search begins.instanceName
- java.lang.String The instance to find.attrName
- java.lang.String The attribute to find.descriptor
- java.lang.String The descriptor to retrieve.public int getElemChildCount(TableRow element, java.lang.String elementName) throws WorkbenchException
element
- com.ibm.dse.tools.workbench.base.TableRow The Instance or Entity from where the search
will begin.elementName
- java.lang.String The name of the instance or entity to search.public TableRow getElement(TableRow elem, java.lang.String elementPath) throws WorkbenchException
If the TableRow is null, the search begins from the root. Otherwise, the search begins from the specified table row.
elem
- com.ibm.dse.tools.workbench.base.TableRow The element to search from.elementPath
- java.lang.String The element to search.public java.lang.String getElementDescriptor(TableRow elem, TableRow parent, java.lang.String elemName, java.lang.String descriptor) throws WorkbenchException
This method is called from a loop operation.
elem
- com.ibm.dse.tools.workbench.base.TableRow The element (Instance or Entity or Allowed_value) from which the search begins.parent
- com.ibm.dse.tools.workbench.base.TableRow The parent of the element, the iterateOver instance or element.elemName
- java.lang.String The instance or entity or allowed_value to find.descriptor
- java.lang.String The descriptor to retrieve.public java.lang.String getElementDescriptor(TableRow instance, java.lang.String instanceName, java.lang.String descriptor) throws WorkbenchException
instance
- com.ibm.dse.tools.workbench.base.TableRow The element from where the search begins.instanceName
- java.lang.String The element to find.descriptor
- java.lang.String The descriptor to retrieve.public TableRow[] getElementList(TableRow instance, java.lang.String instanceName) throws WorkbenchException
instance
- com.ibm.dse.tools.workbench.base.TableRow The Instance or Entity from where
the search begins.instanceName
- java.lang.String The Instance name to search for.public TableRow[] getInheritanceElementList(TableRow entity, java.lang.String entityName) throws WorkbenchException
entity
- com.ibm.dse.tools.workbench.base.TableRow The entity from where
the search begins.entityName
- java.lang.String The Entity name to search for.public TableRow getParentElement(TableRow elem, java.lang.String elementPath) throws WorkbenchException
If the TableRow is null, the search begins from the root. Otherwise, the search begins from the specified table row.
elem
- com.ibm.dse.tools.workbench.base.TableRow The element to search from.elementPath
- java.lang.String The element to search.public TableRow[] getPropertiesList(TableRow instance, java.lang.String instanceName) throws WorkbenchException
instance
- com.ibm.dse.tools.workbench.base.TableRow The Instance or Entity from where
the search begins.instanceName
- java.lang.String The Instance or Entity name to search for.public java.lang.String getPropertyDescriptor(TableRow property, java.lang.String descriptor) throws WorkbenchException
property
- com.ibm.dse.tools.workbench.base.TableRow. The property or attribute to query.descriptor
- java.lang.String The descriptor to retrieve.public TableRow getReferredInstance(TableRow instance, TableRow property) throws WorkbenchException
property
- com.ibm.dse.tools.workbench.base.TableRow The Property.public TableRow getReferredInstance(TableRow instance, java.lang.String name) throws WorkbenchException
instance
- com.ibm.dse.tools.workbench.base.TableRow The instance.name
- java.lang.String The property name.public void setRoot(TableRow aInstance)
This row will be the root Instance from where all the searches contained in the template will start from. If this parameter is specified as a null value, the object created has not access to the data base.
aInstance
- com.ibm.dse.tools.workbench.base.TableRow
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |