Package com.uc4.api.objects
Class SyncList
- java.lang.Object
-
- com.uc4.api.objects.SyncList
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSyncList(com.uc4.util.XMLDocument doc)Constructs aSyncListfrom the specifiedXMLDocument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSyncItem(SyncItem item)Adds a single SYNC condition to this job.voidclear()Removes all sync references.java.util.Iterator<SyncItem>iterator()Returns a list of all sync conditions.booleanremoveSyncItem(SyncItem item)Removes the specified item from thisSyncList.intsize()Returns the number ofSyncItemin this list.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
Method Detail
-
removeSyncItem
public boolean removeSyncItem(SyncItem item)
Removes the specified item from thisSyncList.- Parameters:
item- Sync which should be removed- Returns:
trueif the item was removed successfully
-
addSyncItem
public void addSyncItem(SyncItem item)
Adds a single SYNC condition to this job.- Parameters:
item- Sync condition
-
clear
public void clear()
Removes all sync references.
-
iterator
public java.util.Iterator<SyncItem> iterator()
Returns a list of all sync conditions. The list contains onlySyncItemobjects.- Specified by:
iteratorin interfacejava.lang.Iterable<SyncItem>- Returns:
- iterator
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
size
public int size()
Returns the number ofSyncItemin this list.- Returns:
- Number of SyncItem
-
-