|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.scribble.protocol.model.ModelObject org.scribble.protocol.model.Activity org.scribble.protocol.model.Block
public class Block
This class represents a group of activities.
Constructor Summary | |
---|---|
Block()
|
Method Summary | |
---|---|
boolean |
add(Activity act)
This method adds an activity to the block. |
boolean |
equals(Object o)
|
Activity |
get(int index)
This method returns the activity at the specified index. |
List<Activity> |
getContents()
This method returns the contents associated with the block. |
int |
hashCode()
|
int |
indexOf(Activity act)
This method returns the index of the supplied activity. |
boolean |
remove(Activity act)
This method removes an activity from the block. |
int |
size()
This method returns the number of activities in the block. |
String |
toString()
|
void |
visit(Visitor visitor)
This method visits the model object using the supplied visitor. |
Methods inherited from class org.scribble.protocol.model.Activity |
---|
getEnclosingProtocol |
Methods inherited from class org.scribble.protocol.model.ModelObject |
---|
derivedFrom, getAnnotations, getModel, getParent, getProperties, setParent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Block()
Method Detail |
---|
public List<Activity> getContents()
public boolean add(Activity act)
act
- The activity
public boolean remove(Activity act)
act
- The activity
public int size()
public Activity get(int index) throws IndexOutOfBoundsException
index
- The index The index
IndexOutOfBoundsException
- Out of boundspublic int indexOf(Activity act)
act
- The activity
public void visit(Visitor visitor)
visit
in class ModelObject
visitor
- The visitorpublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |