Package com.uc4.api.objects
Class SyncList
- java.lang.Object
-
- com.uc4.api.objects.SyncList
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SyncList(com.uc4.util.XMLDocument doc)
Constructs aSyncList
from the specifiedXMLDocument
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSyncItem(SyncItem item)
Adds a single SYNC condition to this job.void
clear()
Removes all sync references.java.util.Iterator<SyncItem>
iterator()
Returns a list of all sync conditions.boolean
removeSyncItem(SyncItem item)
Removes the specified item from thisSyncList
.int
size()
Returns the number ofSyncItem
in this list.protected void
store(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:
true
if 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 onlySyncItem
objects.- Specified by:
iterator
in 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 ofSyncItem
in this list.- Returns:
- Number of SyncItem
-
-