org.csapi.jr.se.pam
Class PAMContext

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

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

This is a Sequence of Data Elements containing the data which defines the context in which an availability is queried and information about the asker that is requesting the data. .

See Also:
Serialized Form

Constructor Summary
PAMContext()
          Creates a new PAMContext instance.
PAMContext(org.csapi.jr.se.pam.PAMContextData _contextData, org.csapi.jr.se.Attribute[] _askerData)
          Creates a new PAMContext instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 org.csapi.jr.se.Attribute[] getAskerData()
          This method returns a askerData.
 org.csapi.jr.se.pam.PAMContextData getContextData()
          This method returns a contextData.
 int hashCode()
          Returns a hashcode value for the object.
 void setAskerData(org.csapi.jr.se.Attribute[] askerData)
          This method sets a askerData.
 void setContextData(org.csapi.jr.se.pam.PAMContextData contextData)
          This method sets a contextData.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PAMContext

public PAMContext()
Creates a new PAMContext instance.


PAMContext

public PAMContext(org.csapi.jr.se.pam.PAMContextData _contextData,
                  org.csapi.jr.se.Attribute[] _askerData)
Creates a new PAMContext instance.

Parameters:
_contextData - Contains the context name and the list of attributes that define the context. The attributes to be included for a given context are specified by the definition of the context.
_askerData - Contains information about the asker of availability. The exact attributes in this list are dependent on the application. PAM reserves the attribute 'name' with type TpPAMFQName to contain the identity of the asker if known.
Method Detail

getContextData

public org.csapi.jr.se.pam.PAMContextData getContextData()
This method returns a contextData.

Returns:
a org.csapi.jr.se.pam.PAMContextData value

getAskerData

public org.csapi.jr.se.Attribute[] getAskerData()
This method returns a askerData.

Returns:
a org.csapi.jr.se.Attribute[] value

setContextData

public void setContextData(org.csapi.jr.se.pam.PAMContextData contextData)
This method sets a contextData.


setAskerData

public void setAskerData(org.csapi.jr.se.Attribute[] askerData)
This method sets a askerData.


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