Class SyncList

  • All Implemented Interfaces:
    java.lang.Iterable<SyncItem>

    public class SyncList
    extends java.lang.Object
    implements java.lang.Iterable<SyncItem>
    This class represents the SYNC tab of an executable object.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SyncList​(com.uc4.util.XMLDocument doc)
      Constructs a SyncList from the specified XMLDocument
    • 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 this SyncList.
      int size()
      Returns the number of SyncItem in this list.
      protected void store​(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • SyncList

        protected SyncList​(com.uc4.util.XMLDocument doc)
        Constructs a SyncList from the specified XMLDocument
        Parameters:
        doc - XML Document
    • Method Detail

      • removeSyncItem

        public boolean removeSyncItem​(SyncItem item)
        Removes the specified item from this SyncList.
        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 only SyncItem objects.
        Specified by:
        iterator in interface java.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 of SyncItem in this list.
        Returns:
        Number of SyncItem