|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.activitylabels.ActivityLabel
public class ActivityLabel
The activity name representation
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> |
Field Summary | |
---|---|
static Parcelable.Creator<ActivityLabel> |
CREATOR
The Parcelable creator. |
long |
id
The unique activity identifier |
String |
name
The activity name |
private ActivityLabel |
predecessor
The predecessor |
private TreeSet<ActivityLabel> |
successors
The successors |
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor Summary | |
---|---|
ActivityLabel(long id,
String name)
Constructor |
|
ActivityLabel(Parcel source)
Constructor |
Method Summary | |
---|---|
void |
addSuccessor(ActivityLabel successor)
Adds a successor activity |
ActivityLabel |
cloneWithName(String name)
Method to clone an activity label with a new name |
int |
describeContents()
|
List<ActivityLabel> |
getAllPredecessors()
Getter for all predecessors |
List<ActivityLabel> |
getAllSuccessors()
Getter for all successors |
long |
getId()
Getter for the id |
String |
getName()
Getter for the name |
ActivityLabel |
getPredecessor()
Getter for the predecessor activity |
Collection<ActivityLabel> |
getSuccessorList()
Getter for the successors |
Collection<ActivityLabel> |
getSuccessors()
Getter for the successors |
boolean |
hasSuccessors()
Test for successors |
void |
removeSuccessor(ActivityLabel successor)
Adds a successor activity |
void |
setPredecessor(ActivityLabel predecessor)
Setter for the predecessor activity |
String |
toString()
|
String |
toXML()
|
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 |
---|
public final long id
public final String name
private ActivityLabel predecessor
private final TreeSet<ActivityLabel> successors
public static final Parcelable.Creator<ActivityLabel> CREATOR
Constructor Detail |
---|
public ActivityLabel(long id, String name)
id
- the unique identifiername
- the activity namepublic ActivityLabel(Parcel source)
source
- the parcel to create fromMethod Detail |
---|
public final void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public int describeContents()
describeContents
in interface Parcelable
public final long getId()
public final String getName()
public final ActivityLabel getPredecessor()
public final void setPredecessor(ActivityLabel predecessor)
predecessor
- the predecessor activity to setpublic boolean hasSuccessors()
public List<ActivityLabel> getAllPredecessors()
public Collection<ActivityLabel> getSuccessors()
public Collection<ActivityLabel> getSuccessorList()
public List<ActivityLabel> getAllSuccessors()
public final void addSuccessor(ActivityLabel successor)
successor
- the successor activity to addpublic final void removeSuccessor(ActivityLabel successor)
successor
- the successor activity to addpublic String toString()
toString
in class Object
public String toXML() throws Exception
toXML
in interface SerializableData
Exception
public final ActivityLabel cloneWithName(String name)
name
- the new name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |