|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.arm4.arm40.transaction.ArmInterface
org.arm4.arm40.transaction.ArmIdentityProperties
public class 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.ArrayList |
m_contextProperties
|
protected java.util.ArrayList |
m_identityProperties
|
Fields inherited from class org.arm4.arm40.transaction.ArmInterface |
---|
m_errorCode, m_factory |
Constructor Summary | |
---|---|
ArmIdentityProperties(ArmIdentityProperties identityProperties)
Create the ARM Identity Properties. |
|
ArmIdentityProperties(java.lang.String[] identity_names,
java.lang.String[] identity_values,
java.lang.String[] context_names,
ArmFactory factory)
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[] values)
Set all the context values to the given list. |
Methods inherited from class org.arm4.arm40.transaction.ArmInterface |
---|
getErrorCode, getErrorMessage, getFactory, setErrorCode, setFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opengroup.arm40.transaction.ArmInterface |
---|
getErrorCode, getErrorMessage, setErrorCode |
Field Detail |
---|
protected java.util.ArrayList m_identityProperties
protected java.util.ArrayList m_contextProperties
Constructor Detail |
---|
public ArmIdentityProperties(java.lang.String[] identity_names, java.lang.String[] identity_values, java.lang.String[] context_names, ArmFactory factory)
identity_names
- identity_values
- context_names
- factory
- public ArmIdentityProperties(ArmIdentityProperties identityProperties)
identityProperties
- Method Detail |
---|
public java.lang.String getIdentityName(int index)
getIdentityName
in interface ArmIdentityProperties
index
- the index of the identity name to be returned.
name
part of the (name,value)
identity property) at the specified array index. The returned value
will be null
if either the name or value at
the index is set to null.public java.lang.String[] getIdentityNames()
public java.lang.String getIdentityValue(int index)
getIdentityValue
in interface ArmIdentityProperties
index
- the index of the identity value to be returned.
value
part of the (name,value)
identity property) at the specified array index. The returned value
will be null
if either the name or value at
the index is set to null.public java.lang.String[] getIdentityValues()
public java.lang.String getContextName(int index)
getContextName
in interface ArmIdentityProperties
index
- the index of the context name to be returned.
name
part of the (name,value)
context property) at the specified array index. The returned value
may be null
.public java.lang.String[] getContextNames()
public java.lang.String getContextValue(int index)
index
-
public java.lang.String[] getContextValues()
public void setContextValue(int index, java.lang.String value)
index
- value
- public void setContextValues(java.lang.String[] values)
values
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |