@Embeddable public class ActivityTypeId extends Object implements Externalizable
| Constructor and Description |
|---|
ActivityTypeId()
The default constructor.
|
ActivityTypeId(ActivityTypeId act)
The copy constructor.
|
ActivityTypeId(String id,
int index)
This constructor initializes the id and index
for the reference.
|
| Modifier and Type | Method and Description |
|---|---|
static ActivityTypeId |
createId(ActivityType at)
This method creates an id associated with the
supplied activity type.
|
boolean |
equals(Object obj) |
String |
getUnitId()
This method gets the activity unit id.
|
int |
getUnitIndex()
This method sets the index of the activity
type within the activity unit.
|
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
setUnitId(String id)
This method sets the activity unit id.
|
void |
setUnitIndex(int index)
This method sets the index of the activity
type within the activity unit.
|
void |
writeExternal(ObjectOutput out) |
public ActivityTypeId()
public ActivityTypeId(ActivityTypeId act)
act - The activity to copy.public ActivityTypeId(String id, int index)
id - The activity unit idindex - The activity type index within the unitpublic void setUnitId(String id)
id - The activity unit idpublic String getUnitId()
public void setUnitIndex(int index)
index - The indexpublic int getUnitIndex()
public static ActivityTypeId createId(ActivityType at)
at - The activity typepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.