ilog.rules.xml.util

Interface IlrXmlDataTypeMapper.CollectionMapper

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addComponent(java.lang.Object collection, java.lang.Object component)
      Adds a new component in the collection
      java.lang.Object createCollection(java.util.Collection components)
      Creates a new instance of the collection knowing its components
      java.lang.Object createVoidCollection()
      Creates a new instance of a void collection.
      java.lang.Object getComponent(java.lang.Object collection, int ix)
      Get a component of the collection knowing its index
      java.lang.Class getImplementationType()
      Gets the Java implementation class of the collection.
      java.util.Iterator getIterator(java.lang.Object collection)
      Get an iterator on the collection
      int getSize(java.lang.Object collection)
      Get the size of the collection
      IlrType getXomType()
      Gets the Java collection type used in the XOM
      boolean isAddComponentSupported()
      Determines if the collection accepts to add new component.
      void removeComponent(java.lang.Object collection, java.lang.Object component)
      Remove a component of a collection
    • Method Detail

      • getXomType

        IlrType getXomType()
        Gets the Java collection type used in the XOM
      • getImplementationType

        java.lang.Class getImplementationType()
        Gets the Java implementation class of the collection.
      • createVoidCollection

        java.lang.Object createVoidCollection()
        Creates a new instance of a void collection.
        Returns:
        The new collection.
      • createCollection

        java.lang.Object createCollection(java.util.Collection components)
        Creates a new instance of the collection knowing its components
        Parameters:
        components - the components to be added in the new collection
        Returns:
        the new collection
      • addComponent

        void addComponent(java.lang.Object collection,
                        java.lang.Object component)
        Adds a new component in the collection
        Parameters:
        collection - The collection.
        component - The component.
      • isAddComponentSupported

        boolean isAddComponentSupported()
        Determines if the collection accepts to add new component.
        Returns:
        true if adding component is accepted.
      • getComponent

        java.lang.Object getComponent(java.lang.Object collection,
                                    int ix)
        Get a component of the collection knowing its index
        Parameters:
        collection - the collection
        ix - index of the component in the collection
      • removeComponent

        void removeComponent(java.lang.Object collection,
                           java.lang.Object component)
        Remove a component of a collection
        Parameters:
        collection - the collection
        component - the component to be removed from the collection
      • getIterator

        java.util.Iterator getIterator(java.lang.Object collection)
        Get an iterator on the collection
        Parameters:
        collection - the collection to be iterated.
        Returns:
        an iterator on the collection
      • getSize

        int getSize(java.lang.Object collection)
        Get the size of the collection
        Parameters:
        collection - the collection to be iterated.
        Returns:
        the size of the collection

© Copyright IBM Corp. 1987, 2017