OptimalTrace
5.2

com.compuware.optimaltrace.framework.dynattribute
Interface DynAttributeIfc

All Known Subinterfaces:
AbstractRequirementIfc, AbstractStepIfc, AlternativeScenarioIfc, BizObjectIfc, com.compuware.optimaltrace.tools.common.bizobjectslocal.ClearableSuspectLinkIfc, CustomPropertyTemplateIfc, CustomPropertyTemplateListIfc, GoalLevelIfc, GoalLevelsIfc, ItemIfc, ItemListIfc, MainSuccessScenarioIfc, ProjectIfc, RefinementIfc, ScenarioIfc, SimpleRequirementIfc, StepIfc, TableHolderListContainerIfc, ToolSettingsIfc, UseCaseIfc, UseCasePackageIfc
All Known Implementing Classes:
com.compuware.optimaltrace.framework.business.AbstractBizObject, com.compuware.optimaltrace.tools.common.bizobjects.AbstractStep, ProjectContainer, Step

public interface DynAttributeIfc

Interface DynAttribute.


Method Summary
 java.util.Map getAttributeTable()
          Gets the attribute table.
 long getAttributeTimeStamp(java.lang.String name)
          Gets the attribute of time stamp.
 boolean getBooleanAttribute(java.lang.String name)
          Gets the boolean attribute.
 int getIntAttribute(java.lang.String name)
          Gets the int attribute.
 long getLongAttribute(java.lang.String name)
          Gets the Long attribute.
 java.lang.Object getObjectAttribute(java.lang.String name)
          Gets the object attributes.
 short getShortAttribute(java.lang.String name)
          Gets the short attribute.
 java.lang.String getStringAttribute(java.lang.String name)
          Gets the string attributes
 java.lang.Long getTimeStamp(java.lang.String name)
          Gets the time stamp.
 java.util.Map getTimeStampTable()
          Gets the time stamp table.
 boolean hasAttribute(java.lang.String name)
          Checks if it has the attribute.
 java.lang.Object removeAttribute(java.lang.String name)
          Removes the attribute.
 boolean renameAttribute(java.lang.String oldName, java.lang.String newName)
          Renames the attribute.
 long setAttribute(java.lang.String name, boolean value)
          Sets the attribute
 long setAttribute(java.lang.String name, int value)
          Sets the attribute.
 long setAttribute(java.lang.String name, long value)
          Sets the attribute.
 long setAttribute(java.lang.String name, short value)
          Sets the attribute.
 long setAttribute(java.lang.String name, java.lang.String value)
          Sets the attribute.
 long setAttributeNoTimeStampUpdate(java.lang.String name, boolean value)
          Sets the attribute of time stamp update.
 void setAttributeNoTimeStampUpdate(java.lang.String name, java.lang.String value)
          Sets the attribute of no time stamp update.
 void setAttributeTable(java.util.Map attributeTable)
          Sets the Attribute table.
 void setAttributeTimeStamp(java.lang.String name, long timeStamp)
          Sets the attribute of time stamp.
 long setObjectAttribute(java.lang.String name, java.lang.Object value)
          Sets the attribute.
 void setTimeStampTable(java.util.Map timeStampTable)
          Sets the time stamp table.
 

Method Detail

setAttribute

long setAttribute(java.lang.String name,
                  java.lang.String value)
Sets the attribute. All return the time stamp as a convenience/optimization mechanism.

Parameters:
name -
value -
Returns:
long

setObjectAttribute

long setObjectAttribute(java.lang.String name,
                        java.lang.Object value)
Sets the attribute.

Parameters:
name -
value -
Returns:
long

setAttribute

long setAttribute(java.lang.String name,
                  boolean value)
Sets the attribute

Parameters:
name -
value -
Returns:
long

setAttributeNoTimeStampUpdate

long setAttributeNoTimeStampUpdate(java.lang.String name,
                                   boolean value)
Sets the attribute of time stamp update.

Parameters:
name -
value -
Returns:
long

setAttributeNoTimeStampUpdate

void setAttributeNoTimeStampUpdate(java.lang.String name,
                                   java.lang.String value)
Sets the attribute of no time stamp update.

Parameters:
name -
value -

setAttribute

long setAttribute(java.lang.String name,
                  long value)
Sets the attribute.

Parameters:
name -
value -
Returns:
long

setAttribute

long setAttribute(java.lang.String name,
                  short value)
Sets the attribute.

Parameters:
name -
value -
Returns:
long

setAttribute

long setAttribute(java.lang.String name,
                  int value)
Sets the attribute.

Parameters:
name -
value -
Returns:
long

removeAttribute

java.lang.Object removeAttribute(java.lang.String name)
Removes the attribute.

Parameters:
name -
Returns:
Object

getObjectAttribute

java.lang.Object getObjectAttribute(java.lang.String name)
Gets the object attributes.

Parameters:
name -
Returns:
String

getStringAttribute

java.lang.String getStringAttribute(java.lang.String name)
Gets the string attributes

Parameters:
name -
Returns:
String

getBooleanAttribute

boolean getBooleanAttribute(java.lang.String name)
Gets the boolean attribute.

Parameters:
name -
Returns:
boolean

getLongAttribute

long getLongAttribute(java.lang.String name)
Gets the Long attribute.

Parameters:
name -
Returns:
long

getShortAttribute

short getShortAttribute(java.lang.String name)
Gets the short attribute.

Parameters:
name -
Returns:
short

getIntAttribute

int getIntAttribute(java.lang.String name)
Gets the int attribute.

Parameters:
name -
Returns:
int

getAttributeTimeStamp

long getAttributeTimeStamp(java.lang.String name)
Gets the attribute of time stamp.

Parameters:
name -
Returns:
long

setAttributeTimeStamp

void setAttributeTimeStamp(java.lang.String name,
                           long timeStamp)
Sets the attribute of time stamp.

Parameters:
name -
timeStamp -

getAttributeTable

java.util.Map getAttributeTable()
Gets the attribute table. Returns an unmodifiable view of the attributes table. These accessor operations are handy for generic XML persistence and the like.

Returns:
Map

getTimeStamp

java.lang.Long getTimeStamp(java.lang.String name)
Gets the time stamp.

Returns:
Long

getTimeStampTable

java.util.Map getTimeStampTable()
Gets the time stamp table.

Returns:
Map

setAttributeTable

void setAttributeTable(java.util.Map attributeTable)
Sets the Attribute table. This is necessary for cloning methods.

Parameters:
attributeTable -

setTimeStampTable

void setTimeStampTable(java.util.Map timeStampTable)
Sets the time stamp table.

Parameters:
timeStampTable -

renameAttribute

boolean renameAttribute(java.lang.String oldName,
                        java.lang.String newName)
Renames the attribute.

Parameters:
oldName -
newName -
Returns:
boolean

hasAttribute

boolean hasAttribute(java.lang.String name)
Checks if it has the attribute.

Parameters:
name -
Returns:
boolean

OptimalTrace
5.2

Compuware Corporation

OptimalTrace is a trademark or registered trademark of Compuware Corporation in the US and other countries.
Copyright 2008-2009 Compuware Corporation. One Campus Martius,
Detroit, Michigan, 48226, U.S.A. All Rights Reserved.