org.arm4.arm40.transaction

Class ArmIdentityProperties

public class ArmIdentityProperties extends ArmInterface implements 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.

Version: $Revision$ $Date$

Author: dcarter

Field Summary
protected ArrayListm_contextProperties
protected ArrayListm_identityProperties
Constructor Summary
ArmIdentityProperties(String[] identity_names, String[] identity_values, String[] context_names, ArmFactory factory)
Create the ARM Identity Properties.
ArmIdentityProperties(ArmIdentityProperties identityProperties)
Create the ARM Identity Properties.
Method Summary
StringgetContextName(int index)
String[]getContextNames()
Returns an array of all the ARM Context Names.
StringgetContextValue(int index)
Returns the ARM Context Value at the given index.
String[]getContextValues()
Returns an array of all the ARM Context Values.
StringgetIdentityName(int index)
String[]getIdentityNames()
Returns an array of all the ARM Identity Names.
StringgetIdentityValue(int index)
String[]getIdentityValues()
Returns an array of all the ARM Identity Values.
voidsetContextValue(int index, String value)
Set the Context value at the given index.
voidsetContextValues(String[] values)
Set all the context values to the given list.

Field Detail

m_contextProperties

protected ArrayList m_contextProperties

m_identityProperties

protected ArrayList m_identityProperties

Constructor Detail

ArmIdentityProperties

public ArmIdentityProperties(String[] identity_names, String[] identity_values, String[] context_names, ArmFactory factory)
Create the ARM Identity Properties.

Parameters: identity_names identity_values context_names factory

ArmIdentityProperties

public ArmIdentityProperties(ArmIdentityProperties identityProperties)
Create the ARM Identity Properties.

Parameters: identityProperties

Method Detail

getContextName

public String getContextName(int index)

getContextNames

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

Returns: an array of all the ARM Context Names.

getContextValue

public 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 String[] getContextValues()
Returns an array of all the ARM Context Values.

Returns: an array of all the ARM Context Values.

getIdentityName

public String getIdentityName(int index)

getIdentityNames

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

Returns: an array of all the ARM Identity Names.

getIdentityValue

public String getIdentityValue(int index)

getIdentityValues

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

Returns: an array of all the ARM Identity Values.

setContextValue

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

Parameters: index value

setContextValues

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

Parameters: values