|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.bom.dynamic.IlrDynamicModelElement ilog.rules.bom.dynamic.IlrDynamicPackage
public class IlrDynamicPackage
An implementation of the ilog.rules.bom.IlrPackage
interface.
Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.
Method Summary | |
---|---|
void |
accept(IlrVisitor visitor)
Defines a default visit path: here visit the enums, the classes and the nested packages. |
IlrDynamicClass |
addClass(String name)
Deprecated. Use IlrModelFactory.createClass(ilog.rules.bom.mutable.IlrMutablePackage, java.lang.String) instead. |
IlrDynamicPackage |
addPackage(String name)
Adds a IlrDynamicPackage in this package. |
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. |
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. |
IlrClass |
getGenericClass(String rawClassName,
int numberOfTypeParameters)
|
IlrNamespace |
getNamespace(String name)
Returns the contained name space having the given name. |
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. |
Iterator |
modelElementIterator()
Returns an iterator over the model elements contained in the namespace. |
Iterator |
types()
Returns an iterator over all types defined in this package. |
Methods inherited from class ilog.rules.bom.dynamic.IlrDynamicModelElement |
---|
fireUpdate, fireUpdate, fixType, getFullyQualifiedName, getMutableObjectModel, getName, getObjectModel, getPropertyValue, getPropertyValue, hasListeners, isPropertyPersistent, propertyNames, removeProperty, setPersistentProperty, setPersistentProperty, setPropertyValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ilog.rules.bom.IlrPackage |
---|
getEnclosingPackage, isDefaultPackage, visit |
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.bom.mutable.IlrMutableModelElement |
---|
getMutableObjectModel |
Method Detail |
---|
public IlrDynamicPackage addPackage(String name)
IlrDynamicPackage
in this package. Note that
no check is made that the given name is not already used
in this package.
name
- the name of the package.
public IlrDynamicClass addClass(String name)
IlrModelFactory.createClass(ilog.rules.bom.mutable.IlrMutablePackage, java.lang.String)
instead.
IlrDynamicClass
in this
package. Note that this method does not check that
the given name is not already used in the package.
name
- the name of the class.
public void accept(IlrVisitor visitor)
accept
in interface IlrVisitable
visitor
- The visitor.public List getNestedPackages()
null
or an
empty list.
getNestedPackages
in interface IlrPackage
public List getEnums()
null
or an empty list.
getEnums
in interface IlrPackage
public List getClasses()
null
or an empty list.
getClasses
in interface IlrNamespace
getClasses
in interface IlrPackage
public Iterator modelElementIterator()
modelElementIterator
in interface IlrNamespace
public IlrNamespace getNamespace(String name)
null
is
returned.
getNamespace
in interface IlrNamespace
public Iterator types()
types
in interface IlrPackage
public IlrPackage getNestedPackage(String name)
null
is
returned.
getNestedPackage
in interface IlrPackage
public IlrEnum getEnum(String name)
null
is
returned.
getEnum
in interface IlrPackage
public IlrClass getClass(String name)
null
is
returned.
getClass
in interface IlrNamespace
getClass
in interface IlrPackage
public IlrClass getGenericClass(String rawClassName, int numberOfTypeParameters)
getGenericClass
in interface IlrNamespace
public Iterator allPackages()
allPackages
in interface IlrPackage
public Iterator allEnums()
allEnums
in interface IlrPackage
public Iterator allClasses()
allClasses
in interface IlrPackage
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |