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. |
protected void |
loadContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes info) |
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.
|
protected void |
storeContent(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element objectElement,
ConnectionAttributes sessionInfo)
Stores the object specific data under the
objectElement element. |
void |
validate()
Validates the object.
|
docu, getAccess, getIdnr, getModCount, getName, getType, isOldVersion, load, store
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
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.protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
UC4Object
objectElement
element.doc
- XML Document, used to create subelementsobjectElement
- the newly created elements are children of the objectElement
elementsessionInfo
- Information about the current sessionpublic boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object