All Implemented Interfaces:
Direct Known Subclasses:

public abstract class Licenses extends PropertyIteratorBase implements Iterator<License>
Licenses supports an iterator over a list of licenses for the asset. Callers can use it to step through the list just once. If they want to parse the list again, they could use the copy/clone constructor to create a new iterator.
  • Constructor Details

    • Licenses

      public Licenses(int maxCacheSize)
      Typical Constructor creates an iterator with the supplied list of elements.
      maxCacheSize - maximum number of elements that should be retrieved from the property server and cached in the element list at any one time. If a number less than one is supplied, 1 is used.
    • Licenses

      public Licenses(Licenses template)
      Copy/clone constructor. Used to reset iterator element pointer to 0;
      template - type-specific iterator to copy; null to create an empty iterator
  • Method Details

    • cloneElement

      protected ElementBase cloneElement(ElementBase template)
      Provides a concrete implementation of cloneElement for the specific iterator type.
      Specified by:
      cloneElement in class PropertyIteratorBase
      template - object to clone
      new cloned object.
    • cloneIterator

      protected abstract Licenses cloneIterator()
      Clones this iterator.
      new cloned object.
    • hasNext

      public boolean hasNext()
      The iterator can only be used once to step through the elements. This method returns a boolean to indicate if it has got to the end of the list yet.
      Specified by:
      hasNext in interface Iterator<License>
      boolean indicating whether there are more elements.
    • next

      public License next()
      Return the next element in the iteration.
      Specified by:
      next in interface Iterator<License>
      License next element object that has been cloned.
    • remove

      public void remove()
      Remove the current element in the iterator. (Null implementation since this iterator works off of cached elements from the property (metadata) server.)
      Specified by:
      remove in interface Iterator<License>
    • toString

      public String toString()
      Standard toString method.
      toString in class Object
      print out of variables in a JSON-style