public class IlrDynamicPackage extends IlrDynamicModelElement implements java.io.Serializable, IlrMutablePackage, IlrVisitable
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.| Modifier and Type | Method and Description |
|---|---|
void |
accept(IlrVisitor visitor)
Defines a default visit path: here visit the enums, the classes and the nested packages.
|
IlrDynamicClass |
addClass(java.lang.String name)
Deprecated.
|
IlrDynamicPackage |
addPackage(java.lang.String name)
Adds a
IlrDynamicPackage in this package. |
java.util.Iterator |
allClasses()
Returns an iterator over all classes contained in this package
including, recursively, the classes contained in nested packages.
|
java.util.Iterator |
allEnums()
Returns an iterator over all enumerated types contained in this package
including, recursively, the enumerated types contained in nested packages.
|
java.util.Iterator |
allPackages()
Returns an iterator over all packages contained in this package
including, recursively, the packages they contain etc.
|
IlrClass |
getClass(java.lang.String name)
Searches the package for a class having the given name.
|
java.util.List |
getClasses()
Returns the list of the classes contained in this package.
|
IlrEnum |
getEnum(java.lang.String name)
Searches the package for an enumerated type having the given name.
|
java.util.List |
getEnums()
Returns the list of the enumerated types contained in this package.
|
IlrClass |
getGenericClass(java.lang.String rawClassName,
int numberOfTypeParameters) |
IlrNamespace |
getNamespace(java.lang.String name)
Returns the contained name space having the given name.
|
IlrPackage |
getNestedPackage(java.lang.String name)
Searches for a nested package having the given name.
|
java.util.List |
getNestedPackages()
Returns the list of the packages nested in this package.
|
java.util.Iterator |
modelElementIterator()
Returns an iterator over the model elements contained in the namespace.
|
java.util.Iterator |
types()
Returns an iterator over all types defined in this package.
|
fireUpdate, fireUpdate, fixType, getFullyQualifiedName, getMutableObjectModel, getName, getObjectModel, getPropertyValue, getPropertyValue, hasListeners, isPropertyPersistent, propertyNames, removeProperty, setPersistentProperty, setPersistentProperty, setPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnclosingPackage, isDefaultPackage, visitgetEnclosingNamespace, getFullyQualifiedName, getName, getObjectModelisPropertyPersistent, setPersistentProperty, setPersistentPropertygetPropertyValue, getPropertyValue, propertyNames, removeProperty, setPropertyValuegetMutableObjectModelpublic IlrDynamicPackage addPackage(java.lang.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(java.lang.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 IlrVisitablevisitor - The visitor.public java.util.List getNestedPackages()
null or an
empty list.getNestedPackages in interface IlrPackagepublic java.util.List getEnums()
null or an empty list.getEnums in interface IlrPackagepublic java.util.List getClasses()
null or an empty list.getClasses in interface IlrNamespacegetClasses in interface IlrPackagepublic java.util.Iterator modelElementIterator()
modelElementIterator in interface IlrNamespacepublic IlrNamespace getNamespace(java.lang.String name)
null is
returned.getNamespace in interface IlrNamespacepublic java.util.Iterator types()
types in interface IlrPackagepublic IlrPackage getNestedPackage(java.lang.String name)
null is
returned.getNestedPackage in interface IlrPackagepublic IlrEnum getEnum(java.lang.String name)
null is
returned.getEnum in interface IlrPackagepublic IlrClass getClass(java.lang.String name)
null is
returned.getClass in interface IlrNamespacegetClass in interface IlrPackagepublic IlrClass getGenericClass(java.lang.String rawClassName, int numberOfTypeParameters)
getGenericClass in interface IlrNamespacepublic java.util.Iterator allPackages()
allPackages in interface IlrPackagepublic java.util.Iterator allEnums()
allEnums in interface IlrPackagepublic java.util.Iterator allClasses()
allClasses in interface IlrPackage© Copyright IBM Corp. 1987, 2017