TPTP 4.6.0 Tracing and Profiling Tools Project
Internal API Specification

org.eclipse.tptp.trace.arm.internal.transaction
Class ArmIdentityPropertiesImpl

java.lang.Object
  extended by org.eclipse.tptp.trace.arm.internal.transaction.ArmInterfaceImpl
      extended by org.eclipse.tptp.trace.arm.internal.transaction.ArmIdentityPropertiesImpl
All Implemented Interfaces:
org.opengroup.arm40.transaction.ArmIdentityProperties, org.opengroup.arm40.transaction.ArmInterface
Direct Known Subclasses:
ArmIdentityPropertiesTransactionImpl

public class ArmIdentityPropertiesImpl
extends ArmInterfaceImpl
implements org.opengroup.arm40.transaction.ArmIdentityProperties

ArmIdentityProperties addresses a requirement to accept a set of string name=value pairs that extend the concept of application and transaction identity and context. An identity property's name and value are the same for all instances of an application or transaction. A context property's name is the same for all instances of an application or transaction, but a context property's value may vary for each instance and the values are defined in ArmApplication and ArmTransaction. ArmIdentityProperties is created with the newArmIdentityProperties() method of ArmTransactionFactory.


Field Summary
protected  java.util.List _contextProperties
           
protected  java.util.List _identityProperties
           
static int MAX_ELEMENT_INDEX
           
static java.lang.String PROPERTY_TPTP_TRANSACTION_NAME
           
 
Fields inherited from class org.eclipse.tptp.trace.arm.internal.transaction.ArmInterfaceImpl
validationPropertyKey
 
Constructor Summary
ArmIdentityPropertiesImpl(org.opengroup.arm40.transaction.ArmIdentityProperties identityProperties)
          Create the ARM Identity Properties.
ArmIdentityPropertiesImpl(java.lang.String[] identityNames, java.lang.String[] identityValues, java.lang.String[] contextNames)
          Create the ARM Identity Properties.
 
Method Summary
 java.lang.String getContextName(int index)
           
 java.lang.String[] getContextNames()
          Returns an array of all the ARM Context Names.
 java.lang.String getContextValue(int index)
          Returns the ARM Context Value at the given index.
 java.lang.String[] getContextValues()
          Returns an array of all the ARM Context Values.
 java.lang.String getIdentityName(int index)
           
 java.lang.String[] getIdentityNames()
          Returns an array of all the ARM Identity Names.
 java.lang.String getIdentityValue(int index)
           
 java.lang.String[] getIdentityValues()
          Returns an array of all the ARM Identity Values.
 void setContextValue(int index, java.lang.String value)
          Set the Context value at the given index.
 void setContextValues(java.lang.String[] contextValues)
          Set all the context values to the given list.
 java.lang.String toString()
          Returns a XML string based version of this entity.
 
Methods inherited from class org.eclipse.tptp.trace.arm.internal.transaction.ArmInterfaceImpl
checkValidation, getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface
getErrorCode, getErrorMessage, setErrorCode
 

Field Detail

MAX_ELEMENT_INDEX

public static final int MAX_ELEMENT_INDEX
See Also:
Constant Field Values

PROPERTY_TPTP_TRANSACTION_NAME

public static final java.lang.String PROPERTY_TPTP_TRANSACTION_NAME
See Also:
Constant Field Values

_identityProperties

protected java.util.List _identityProperties

_contextProperties

protected java.util.List _contextProperties
Constructor Detail

ArmIdentityPropertiesImpl

public ArmIdentityPropertiesImpl(java.lang.String[] identityNames,
                                 java.lang.String[] identityValues,
                                 java.lang.String[] contextNames)
Create the ARM Identity Properties.

Parameters:
identityNames -
identityValues -
contextNames -

ArmIdentityPropertiesImpl

public ArmIdentityPropertiesImpl(org.opengroup.arm40.transaction.ArmIdentityProperties identityProperties)
Create the ARM Identity Properties.

Parameters:
identityProperties -
Method Detail

getIdentityName

public java.lang.String getIdentityName(int index)
Specified by:
getIdentityName in interface org.opengroup.arm40.transaction.ArmIdentityProperties

getIdentityNames

public java.lang.String[] getIdentityNames()
Returns an array of all the ARM Identity Names.

Returns:
an array of all the ARM Identity Names.

getIdentityValue

public java.lang.String getIdentityValue(int index)
Specified by:
getIdentityValue in interface org.opengroup.arm40.transaction.ArmIdentityProperties

getIdentityValues

public java.lang.String[] getIdentityValues()
Returns an array of all the ARM Identity Values.

Returns:
an array of all the ARM Identity Values.

getContextName

public java.lang.String getContextName(int index)
Specified by:
getContextName in interface org.opengroup.arm40.transaction.ArmIdentityProperties

getContextNames

public java.lang.String[] getContextNames()
Returns an array of all the ARM Context Names.

Returns:
an array of all the ARM Context Names.

getContextValue

public java.lang.String getContextValue(int index)
Returns the ARM Context Value at the given index.

Parameters:
index -
Returns:
the ARM Context Value at the given index.

getContextValues

public java.lang.String[] getContextValues()
Returns an array of all the ARM Context Values.

Returns:
an array of all the ARM Context Values.

setContextValue

public void setContextValue(int index,
                            java.lang.String value)
Set the Context value at the given index.

Parameters:
index -
value -

setContextValues

public void setContextValues(java.lang.String[] contextValues)
Set all the context values to the given list.

Parameters:
contextValues -

toString

public java.lang.String toString()
Returns a XML string based version of this entity.

Overrides:
toString in class java.lang.Object
Returns:
a XML string based version of this entity.

TPTP 4.6.0 Tracing and Profiling Tools Project
Internal API Specification