com.vodafone360.people.datatypes
Class IdentityCapability

java.lang.Object
  extended by com.vodafone360.people.datatypes.BaseDataType
      extended by com.vodafone360.people.datatypes.IdentityCapability

public class IdentityCapability
extends BaseDataType

BaseDataType encapsulating Identity capability information issued to or retrieved from server


Nested Class Summary
static class IdentityCapability.CapabilityID
          Enumeration of capabilities potentially supported by an Identity.
private static class IdentityCapability.MemberData
          Enumeration of data items written or read to a Parcel containing an IdentityCapability item.
private static class IdentityCapability.Tags
          Tags associated with IdentityCapability item.
 
Field Summary
static  CREATOR
          Interface to allow IdentityCapability to be written and restored from a Parcel.
 IdentityCapability.CapabilityID mCapability
           
 java.lang.String mDescription
           
 java.lang.String mName
           
 java.lang.Boolean mValue
           
 
Constructor Summary
  IdentityCapability()
          Default constructor.
private IdentityCapability(Parcel in)
          Create IdentityCapability from supplied Parcel.
 
Method Summary
 IdentityCapability createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
          Populate IdentityCapability from supplied Hashtable.
 int describeContents()
          
 java.lang.String name()
          Return name of the current Data-type.
private  void readFromParcel(Parcel in)
          Read IdentityCapability item from Parcel.
private  void setValue(IdentityCapability.Tags tag, java.lang.Object val)
          Sets the value of the member data item associated with the specified tag.
 java.lang.String toString()
          
 void writeToParcel(Parcel dest, int flags)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mValue

public java.lang.Boolean mValue

mCapability

public IdentityCapability.CapabilityID mCapability

mDescription

public java.lang.String mDescription

mName

public java.lang.String mName

CREATOR

public static final  CREATOR
Interface to allow IdentityCapability to be written and restored from a Parcel.

Constructor Detail

IdentityCapability

public IdentityCapability()
Default constructor.


IdentityCapability

private IdentityCapability(Parcel in)
Create IdentityCapability from supplied Parcel.

Parameters:
in - Parcel containing IdentityCapability.
Method Detail

name

public java.lang.String name()
Return name of the current Data-type.

Specified by:
name in class BaseDataType
Returns:
String containing name of the data-type.

createFromHashtable

public IdentityCapability createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Populate IdentityCapability from supplied Hashtable.

Parameters:
hash - Hashtable containing identity capability details.
Returns:
IdentityCapability instance.

setValue

private void setValue(IdentityCapability.Tags tag,
                      java.lang.Object val)
Sets the value of the member data item associated with the specified tag.

Parameters:
tag - Current tag
val - Value associated with the tag

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

describeContents

public int describeContents()


writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)


readFromParcel

private void readFromParcel(Parcel in)
Read IdentityCapability item from Parcel.

Parameters:
in - Parcel containing IdentityCapability item.


JavaDoc