com.groupdocs.assembly

Class KnownTypeSet

  • java.lang.Object
    • com.groupdocs.assembly.KnownTypeSet
  • All Implemented Interfaces:
    java.lang.Iterable


    public class KnownTypeSet
    extends java.lang.Object
    implements java.lang.Iterable
    Represents an unordered set (that is, a collection of unique items) containing Class objects which fully or partially qualified names can be used within document templates to invoke the corresponding types' static members, perform type casts, etc.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(java.lang.Class type)
      Adds the specified Class object to the set.
      void clear()
      Removes all items from the set.
      int getCount()
      Gets the count of items in the set.
      java.util.Iterator iterator()
      Returns An Iterator object to iterate over items of the set.
      void remove(java.lang.Class type)
      Removes the specified Class object from the set.
      • 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
    • Method Detail

      • add

        public void add(java.lang.Class type)

        Adds the specified Class object to the set. Throws IllegalArgumentException in the following cases:

        - type is null.

        - type represents a void type.

        - type represents an invisible type, i.e. a non-public type or a public nested type which has a non-public outer type.

        - type represents an array type.

        - type has been added to the set already.

        Parameters:
        type - A Class object to add.
      • remove

        public void remove(java.lang.Class type)
        Removes the specified Class object from the set. Throws IllegalArgumentException if type is null.
        Parameters:
        type - A Class object to remove.
      • clear

        public void clear()
        Removes all items from the set.
      • iterator

        public java.util.Iterator iterator()
        Returns An Iterator object to iterate over items of the set.
        Specified by:
        iterator in interface java.lang.Iterable
        Returns:
        An Iterator object to iterate over items of the set.
      • getCount

        public int getCount()
        Gets the count of items in the set.
        Returns:
        The count of items in the set.