com.beem.project.beem.service
Class PrivacyListItem

Package class diagram package PrivacyListItem
java.lang.Object
  extended by com.beem.project.beem.service.PrivacyListItem
All Implemented Interfaces:
Parcelable

public class PrivacyListItem
extends Object
implements Parcelable

A simplified version of the Smack PrivacyItem class.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<PrivacyListItem> CREATOR
          Constructor.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
PrivacyListItem()
          Constructor.
PrivacyListItem(int type, String value)
          Constructor.
PrivacyListItem(Parcel in)
          Constructor.
 
Method Summary
 int describeContents()
          .
 int getType()
          PrivacyListItem type accessor.
 String getValue()
          PrivacyListItem value accessor.
 void readFromParcel(Parcel in)
          Initialize object's attributes from a Parcel.
 void setType(int type)
          PrivacyListItem type mutator.
 void setValue(String value)
          PrivacyListItem value mutator.
 void writeToParcel(Parcel dest, int flags)
          .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final Parcelable.Creator<PrivacyListItem> CREATOR
Constructor. Needed to implements the Parcelable.Creator interface. Generates instances of PrivacyListItem from a Parcel.

Constructor Detail

PrivacyListItem

public PrivacyListItem()
Constructor.


PrivacyListItem

public PrivacyListItem(Parcel in)
Constructor. Generates instances of PrivacyListItem from a Parcel.

Parameters:
in - The Parcel used to initialize object's attributes.

PrivacyListItem

public PrivacyListItem(int type,
                       String value)
Constructor.

Parameters:
type - The type of the item.
value - The value of the item.
Method Detail

describeContents

public int describeContents()
.

Specified by:
describeContents in interface Parcelable

readFromParcel

public void readFromParcel(Parcel in)
Initialize object's attributes from a Parcel.

Parameters:
in - The Parcel used to initialize object's attributes.

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
.

Specified by:
writeToParcel in interface Parcelable

getType

public int getType()
PrivacyListItem type accessor.

Returns:
The type of the PrivacyListItem.

getValue

public String getValue()
PrivacyListItem value accessor.

Returns:
The value of the PrivacyListItem.

setType

public void setType(int type)
PrivacyListItem type mutator.

Parameters:
type - The type of the PrivacyListItem.

setValue

public void setValue(String value)
PrivacyListItem value mutator.

Parameters:
value - The value of the PrivacyListItem.


Copyright © 2009 Beem-project.com. All Rights Reserved.