ilog.rules.bom.dynamic

Class IlrDynamicPackage

    • Method Detail

      • addPackage

        public IlrDynamicPackage addPackage(java.lang.String name)
        Adds a IlrDynamicPackage in this package. Note that no check is made that the given name is not already used in this package.
        Parameters:
        name - the name of the package.
        Returns:
        the added package.
      • accept

        public void accept(IlrVisitor visitor)
        Defines a default visit path: here visit the enums, the classes and the nested packages.
        Specified by:
        accept in interface IlrVisitable
        Parameters:
        visitor - The visitor.
      • getNestedPackages

        public java.util.List getNestedPackages()
        Returns the list of the packages nested in this package. Note that if there are no nested packages, this method may either return null or an empty list.
        Specified by:
        getNestedPackages in interface IlrPackage
      • getEnums

        public java.util.List getEnums()
        Returns the list of the enumerated types contained in this package. Note that if there are no enumerated types, this method may either return null or an empty list.
        Specified by:
        getEnums in interface IlrPackage
      • getClasses

        public java.util.List getClasses()
        Returns the list of the classes contained in this package. Note that if there are no classes, this method may either return null or an empty list.
        Specified by:
        getClasses in interface IlrNamespace
        Specified by:
        getClasses in interface IlrPackage
      • modelElementIterator

        public java.util.Iterator modelElementIterator()
        Returns an iterator over the model elements contained in the namespace.
        Specified by:
        modelElementIterator in interface IlrNamespace
      • getNamespace

        public IlrNamespace getNamespace(java.lang.String name)
        Returns the contained name space having the given name. If such a namespace exists, it is returned, otherwise null is returned.
        Specified by:
        getNamespace in interface IlrNamespace
        Since:
        JRules 7.0
      • types

        public java.util.Iterator types()
        Returns an iterator over all types defined in this package. These types are the classes and enumerated types contained in the package.
        Specified by:
        types in interface IlrPackage
      • getNestedPackage

        public IlrPackage getNestedPackage(java.lang.String name)
        Searches for a nested package having the given name. If such a package exists it is returned, otherwise null is returned.
        Specified by:
        getNestedPackage in interface IlrPackage
      • getEnum

        public IlrEnum getEnum(java.lang.String name)
        Searches the package for an enumerated type having the given name. If such an enumerated type exists it is returned, otherwise null is returned.
        Specified by:
        getEnum in interface IlrPackage
      • getClass

        public IlrClass getClass(java.lang.String name)
        Searches the package for a class having the given name. If such a class exists it is returned, otherwise null is returned.
        Specified by:
        getClass in interface IlrNamespace
        Specified by:
        getClass in interface IlrPackage
      • allPackages

        public java.util.Iterator allPackages()
        Returns an iterator over all packages contained in this package including, recursively, the packages they contain etc.
        Specified by:
        allPackages in interface IlrPackage
      • allEnums

        public java.util.Iterator allEnums()
        Returns an iterator over all enumerated types contained in this package including, recursively, the enumerated types contained in nested packages.
        Specified by:
        allEnums in interface IlrPackage
      • allClasses

        public java.util.Iterator allClasses()
        Returns an iterator over all classes contained in this package including, recursively, the classes contained in nested packages.
        Specified by:
        allClasses in interface IlrPackage

© Copyright IBM Corp. 1987, 2017