public class Sync extends UC4Object
Constructor and Description |
---|
Sync() |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<SyncAction> |
actionIterator()
Returns an iterator over
SyncAction . |
int |
actionSize()
Returns the number of defined actions.
|
void |
addAction(SyncAction action)
Adds a new action to this Sync object.
|
void |
addState(SyncState state)
Adds a
SyncState to this Sync object. |
SyncAttributes |
attributes()
Gets attributes of this Sync object.
|
XHeader |
header()
Returns the header data of this object.
|
boolean |
isExecutable()
Returns
true if this Object can be executed. |
boolean |
removeAction(SyncAction action)
Removes the specified action.
|
void |
removeAllActions()
Method to remove all the actions.
|
void |
removeAllStates()
Method to remove all the states.
|
boolean |
removeState(SyncState state)
Removes the specified
SyncState . |
java.util.Iterator<SyncState> |
stateIterator()
Returns an iterator over
SyncState . |
int |
stateSize()
Returns the number of Sync states.
|
void |
validate()
Validates the object.
|
public XHeader header()
public SyncAttributes attributes()
public java.util.Iterator<SyncState> stateIterator()
SyncState
.SyncState
public void addState(SyncState state)
SyncState
to this Sync object.state
- State which should be addedpublic boolean removeState(SyncState state)
SyncState
.state
- State which should be removedpublic int stateSize()
public java.util.Iterator<SyncAction> actionIterator()
SyncAction
.SyncAction
public void addAction(SyncAction action)
action
- Action which should be addedpublic boolean removeAction(SyncAction action)
actionIterator
.action
- Action which should be removedpublic void removeAllActions()
public void removeAllStates()
public int actionSize()
public void validate() throws java.io.InvalidObjectException
UC4Object
InvalidObjectException
is thrown.public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object