com.aspose.words

Class KnownTypeSet

  • java.lang.Object
    • com.aspose.words.KnownTypeSet
  • All Implemented Interfaces:
    java.lang.Iterable
    public class KnownTypeSet 
    extends java.lang.Object

Represents an unordered set (i.e. a collection of unique items) containing java.lang.Class objects which fully or partially qualified names can be used within report templates to invoke the corresponding types' static members, perform type casts, etc.

Property Getters/Setters Summary
intgetCount()
Gets the count of items in the set.
 
Method Summary
voidadd(java.lang.Class type)

Adds the specified java.lang.Class object to the set. Throws System.ArgumentException 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.

voidclear()
Removes all items from the set.
java.util.Iterator<java.lang.Class>iterator()
Returns An java.util.Iterator object to iterate over items of the set.
voidremove(java.lang.Class type)
Removes the specified java.lang.Class object from the set. Throws System.ArgumentException if type is null.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
        Gets the count of items in the set.
    • Method Detail

      • add

        public void add(java.lang.Class type)

        Adds the specified java.lang.Class object to the set. Throws System.ArgumentException 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 java.lang.Class object to add.
      • clear

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

        public java.util.Iterator<java.lang.Class> iterator()
        Returns An java.util.Iterator object to iterate over items of the set.
        Returns:
        An java.util.Iterator object to iterate over items of the set.
      • remove

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