Package com.uc4.api.objects
Class Sync
- java.lang.Object
-
- com.uc4.api.objects.UC4Object
-
- com.uc4.api.objects.Sync
-
public class Sync extends UC4Object
Sync object.
-
-
Constructor Summary
Constructors Constructor Description Sync()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<SyncAction>actionIterator()Returns an iterator overSyncAction.intactionSize()Returns the number of defined actions.voidaddAction(SyncAction action)Adds a new action to this Sync object.voidaddState(SyncState state)Adds aSyncStateto this Sync object.SyncAttributesattributes()Gets attributes of this Sync object.XHeaderheader()Returns the header data of this object.booleanisExecutable()Returnstrueif this Object can be executed.protected voidloadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)booleanremoveAction(SyncAction action)Removes the specified action.voidremoveAllActions()Method to remove all the actions.voidremoveAllStates()Method to remove all the states.booleanremoveState(SyncState state)Removes the specifiedSyncState.java.util.Iterator<SyncState>stateIterator()Returns an iterator overSyncState.intstateSize()Returns the number of Sync states.protected voidstoreContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)voidvalidate()Validates the object.-
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store
-
-
-
-
Method Detail
-
loadContent
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
-
header
public XHeader header()
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
attributes
public SyncAttributes attributes()
Gets attributes of this Sync object.- Returns:
- Attributes of this Sync
-
stateIterator
public java.util.Iterator<SyncState> stateIterator()
Returns an iterator overSyncState.- Returns:
- Iterator over
SyncState
-
addState
public void addState(SyncState state)
Adds aSyncStateto this Sync object.- Parameters:
state- State which should be added
-
removeState
public boolean removeState(SyncState state)
Removes the specifiedSyncState.- Parameters:
state- State which should be removed- Returns:
- True if the action was removed successfully
-
stateSize
public int stateSize()
Returns the number of Sync states.- Returns:
- Number of Sync states
-
actionIterator
public java.util.Iterator<SyncAction> actionIterator()
Returns an iterator overSyncAction.- Returns:
- Iterator over
SyncAction
-
addAction
public void addAction(SyncAction action)
Adds a new action to this Sync object.- Parameters:
action- Action which should be added
-
removeAction
public boolean removeAction(SyncAction action)
Removes the specified action. An action can also be removed using the iterator returned from the methodactionIterator.- Parameters:
action- Action which should be removed- Returns:
- True if the action was removed successfully
-
removeAllActions
public void removeAllActions()
Method to remove all the actions.
-
removeAllStates
public void removeAllStates()
Method to remove all the states.
-
actionSize
public int actionSize()
Returns the number of defined actions.- Returns:
- Number of actions
-
validate
public void validate() throws java.io.InvalidObjectExceptionDescription copied from class:UC4ObjectValidates the object. If the object is not valid anInvalidObjectExceptionis thrown.
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
isExecutable
public boolean isExecutable()
Description copied from class:UC4ObjectReturnstrueif this Object can be executed.- Specified by:
isExecutablein classUC4Object- Returns:
- true if the Object can be executed, false if not.
-
-