org.csapi.jr.se.policy
Class PolicyNameValue

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

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

This data structure is used to pass in a variable name-value pair in an evalPolicy() request. It is a Sequence of Data Elements of a variable name and value

See Also:
Serialized Form

Constructor Summary
PolicyNameValue()
          Creates a new PolicyNameValue instance.
PolicyNameValue(java.lang.String _name, java.lang.Object _value)
          Creates a new PolicyNameValue instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 java.lang.String getName()
          This method returns a name.
 java.lang.Object getValue()
          This method returns a value.
 int hashCode()
          Returns a hashcode value for the object.
 void setName(java.lang.String name)
          This method sets a name.
 void setValue(java.lang.Object value)
          This method sets a value.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyNameValue

public PolicyNameValue()
Creates a new PolicyNameValue instance.


PolicyNameValue

public PolicyNameValue(java.lang.String _name,
                       java.lang.Object _value)
Creates a new PolicyNameValue instance.

Parameters:
_name - Name of Variable.
_value - Value of variable.
Method Detail

getName

public java.lang.String getName()
This method returns a name.

Returns:
a String value

getValue

public java.lang.Object getValue()
This method returns a value.

Returns:
a Object value

setName

public void setName(java.lang.String name)
This method sets a name.


setValue

public void setValue(java.lang.Object value)
This method sets a value.


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