ilog.rules.bom
Interface IlrPackage
-
- All Superinterfaces:
- IlrModelElement, IlrNamespace, IlrProperties, IlrTransientProperties, IlrVisitable
- All Known Subinterfaces:
- IlrMutablePackage
- All Known Implementing Classes:
- IlrDynamicPackage
public interface IlrPackage extends IlrNamespace, IlrVisitable
This interface is used to represent class packages in an object model.
-
-
Method Summary
Methods Modifier and Type Method and Description java.util.IteratorallClasses()Returns an iterator over all classes contained in this package including, recursively, the classes contained in nested packages.java.util.IteratorallEnums()Returns an iterator over all enumerated types contained in this package including, recursively, the enumerated types contained in nested packages.java.util.IteratorallPackages()Returns an iterator over all packages contained in this package including, recursively, the packages they contain etc.IlrClassgetClass(java.lang.String name)Searches the package for a class having the given name.java.util.ListgetClasses()Returns the list of the classes contained in this package.IlrPackagegetEnclosingPackage()Returns the package in which this package is contained ornullif this package is the default package.IlrEnumgetEnum(java.lang.String name)Searches the package for an enumerated type having the given name.java.util.ListgetEnums()Returns the list of the enumerated types contained in this package.IlrPackagegetNestedPackage(java.lang.String name)Searches for a nested package having the given name.java.util.ListgetNestedPackages()Returns the list of the packages nested in this package.booleanisDefaultPackage()Returnstrueif this package is the default package of an object modeljava.util.Iteratortypes()Returns an iterator over all types defined in this package.booleanvisit(IlrObjectModel.Visitor visitor)Deprecated.UseIlrVisitorinstead.-
Methods inherited from interface ilog.rules.bom.IlrNamespace
getGenericClass, getNamespace, modelElementIterator
-
Methods inherited from interface ilog.rules.bom.IlrModelElement
getEnclosingNamespace, getFullyQualifiedName, getName, getObjectModel
-
Methods inherited from interface ilog.rules.bom.IlrProperties
isPropertyPersistent, setPersistentProperty, setPersistentProperty
-
Methods inherited from interface ilog.rules.bom.IlrTransientProperties
getPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValue
-
Methods inherited from interface ilog.rules.util.IlrVisitable
accept
-
-
-
-
Method Detail
-
isDefaultPackage
boolean isDefaultPackage()
Returnstrueif this package is the default package of an object model
-
getEnclosingPackage
IlrPackage getEnclosingPackage()
Returns the package in which this package is contained ornullif this package is the default package.
-
visit
boolean visit(IlrObjectModel.Visitor visitor)
Deprecated. UseIlrVisitorinstead.Calls the appropriate visitor'svisitXXXmethods for the classes and enumerated types contained in this package and, recursively, in those contained in nested packages. If a call to one of the visitor'svisitXXXmethods returnsfalsethen this method returns immediately the valuefalse. Otherwisetrueis returned after all elements have been visited.- Parameters:
visitor- A visitor.- Returns:
trueif the package was entirely visited.
-
getNestedPackages
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 returnnullor an empty list.
-
getEnums
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 returnnullor an empty list.
-
getClasses
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 returnnullor an empty list.- Specified by:
getClassesin interfaceIlrNamespace
-
types
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.
-
getNestedPackage
IlrPackage getNestedPackage(java.lang.String name)
Searches for a nested package having the given name. If such a package exists it is returned, otherwisenullis returned.
-
getEnum
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, otherwisenullis returned.
-
getClass
IlrClass getClass(java.lang.String name)
Searches the package for a class having the given name. If such a class exists it is returned, otherwisenullis returned.- Specified by:
getClassin interfaceIlrNamespace
-
allPackages
java.util.Iterator allPackages()
Returns an iterator over all packages contained in this package including, recursively, the packages they contain etc.
-
allEnums
java.util.Iterator allEnums()
Returns an iterator over all enumerated types contained in this package including, recursively, the enumerated types contained in nested packages.
-
allClasses
java.util.Iterator allClasses()
Returns an iterator over all classes contained in this package including, recursively, the classes contained in nested packages.
-
-