org.csapi.jr.se.policy
Class PolicyVar

java.lang.Object
  |
  +--org.csapi.jr.se.policy.PolicyVar
All Implemented Interfaces:
java.io.Serializable

public final class PolicyVar
extends java.lang.Object
implements java.io.Serializable

This defines the TpPolicyVar type. It is analogous to the TpAttribute type. TpPolicyVar is a Sequence of Data Elements of variable name, type and value. The following types of variables are defined: Atomic types, Record types (having named fields), and List types (where list elements could be complex types as well).

See Also:
Serialized Form

Constructor Summary
PolicyVar()
          Creates a new PolicyVar instance.
PolicyVar(java.lang.String _varName, org.csapi.jr.se.policy.PolicyType _varType, java.lang.Object _varValue)
          Creates a new PolicyVar instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 java.lang.String getVarName()
          This method returns a varName.
 org.csapi.jr.se.policy.PolicyType getVarType()
          This method returns a varType.
 java.lang.Object getVarValue()
          This method returns a varValue.
 int hashCode()
          Returns a hashcode value for the object.
 void setVarName(java.lang.String varName)
          This method sets a varName.
 void setVarType(org.csapi.jr.se.policy.PolicyType varType)
          This method sets a varType.
 void setVarValue(java.lang.Object varValue)
          This method sets a varValue.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyVar

public PolicyVar()
Creates a new PolicyVar instance.


PolicyVar

public PolicyVar(java.lang.String _varName,
                 org.csapi.jr.se.policy.PolicyType _varType,
                 java.lang.Object _varValue)
Creates a new PolicyVar instance.

Parameters:
_varName - Name of variable.
_varType - Type of variable. Could be atomic or complex type.
_varValue - Value of variable. Note that depending on context, the AttributeValue may be NULL.
Method Detail

getVarName

public java.lang.String getVarName()
This method returns a varName.

Returns:
a String value

getVarType

public org.csapi.jr.se.policy.PolicyType getVarType()
This method returns a varType.

Returns:
a org.csapi.jr.se.policy.PolicyType value

getVarValue

public java.lang.Object getVarValue()
This method returns a varValue.

Returns:
a Object value

setVarName

public void setVarName(java.lang.String varName)
This method sets a varName.


setVarType

public void setVarType(org.csapi.jr.se.policy.PolicyType varType)
This method sets a varType.


setVarValue

public void setVarValue(java.lang.Object varValue)
This method sets a varValue.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object