|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrPackage
This interface is used to represent class packages in an object model.
Method Summary | |
---|---|
Iterator |
allClasses()
Returns an iterator over all classes contained in this package including, recursively, the classes contained in nested packages. |
Iterator |
allEnums()
Returns an iterator over all enumerated types contained in this package including, recursively, the enumerated types contained in nested packages. |
Iterator |
allPackages()
Returns an iterator over all packages contained in this package including, recursively, the packages they contain etc. |
IlrClass |
getClass(String name)
Searches the package for a class having the given name. |
List |
getClasses()
Returns the list of the classes contained in this package. |
IlrPackage |
getEnclosingPackage()
Returns the package in which this package is contained or null if this package is the default package. |
IlrEnum |
getEnum(String name)
Searches the package for an enumerated type having the given name. |
List |
getEnums()
Returns the list of the enumerated types contained in this package. |
IlrPackage |
getNestedPackage(String name)
Searches for a nested package having the given name. |
List |
getNestedPackages()
Returns the list of the packages nested in this package. |
boolean |
isDefaultPackage()
Returns true if this package is the default package of
an object model |
Iterator |
types()
Returns an iterator over all types defined in this package. |
boolean |
visit(IlrObjectModel.Visitor visitor)
Deprecated. Use IlrVisitor instead. |
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 |
---|
boolean isDefaultPackage()
true
if this package is the default package of
an object model
IlrPackage getEnclosingPackage()
null
if this package is the default package.
boolean visit(IlrObjectModel.Visitor visitor)
IlrVisitor
instead.
visitXXX
methods 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's
visitXXX
methods returns false
then this method
returns immediately the value false
. Otherwise true
is returned after all elements have been visited.
visitor
- A visitor.
true
if the package was entirely visited.List getNestedPackages()
null
or an
empty list.
List getEnums()
null
or an empty list.
List getClasses()
null
or an empty list.
getClasses
in interface IlrNamespace
Iterator types()
IlrPackage getNestedPackage(String name)
null
is
returned.
IlrEnum getEnum(String name)
null
is
returned.
IlrClass getClass(String name)
null
is
returned.
getClass
in interface IlrNamespace
Iterator allPackages()
Iterator allEnums()
Iterator allClasses()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |