|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpClass
ILOG CPL Business Class interface.
Instances of IlpClass represent business classes of the model.
They provide access to the class hierarchy, and to the class attributes.
| Method Summary | |
|---|---|
Collection |
getSubClasses()
Returns the subclasses of this class as a Collection. |
IlpClass |
getSuperClass()
Returns the superclass of this class as an IlpClass. |
boolean |
isAssignableFrom(IlpClass cls)
Determines if the class represented by this IlpClass object
is either the same as, or is a superclass of, the class represented by
the specified IlpClass parameter. |
boolean |
isSubClassOf(IlpClass parent)
Returns true if the current class is a subclass of
parent class. |
IlpObject |
newInstance(IlpClass ilpClass,
Object identifier,
boolean initializeAttributeValues)
Creates an instance of the class. |
IlpObject |
newInstance(Object identifier,
boolean initializeAttributeValues)
Creates an new instance of the class. |
| Methods inherited from interface ilog.cpl.model.IlpAttributeGroup |
|---|
addAttributeGroupListener, fireEvent, getAttribute, getAttributes, getDeclaredAttributes, getName, hasAttribute, removeAttributeGroupListener |
| Method Detail |
|---|
IlpClass getSuperClass()
IlpClass.
This method should return null when this class
does not have a superclass.
IlpClass superclass.Collection getSubClasses()
Collection.
IlpClass
instances.boolean isSubClassOf(IlpClass parent)
true if the current class is a subclass of
parent class.
parent - The superclass being checked.
parent class.boolean isAssignableFrom(IlpClass cls)
IlpClass object
is either the same as, or is a superclass of, the class represented by
the specified IlpClass parameter.
It returns true if so; otherwise it returns
false.
cls - The IlpClass object to be checked.
cls can be assigned to objects of this class.
IlpObject newInstance(Object identifier,
boolean initializeAttributeValues)
The new instance will be created with the given identifier. If the
argument initializeAttributeValues is set, the new instance
will be initialized with the default attribute values. Default attribute
values are set in the attribute itself and are retrieved using
IlpAttribute.getDefaultValue().
identifier - Object identifierinitializeAttributeValues -
IlpObject interface.IlpObject.getIdentifier(),
IlpAttribute.getDefaultValue()
IlpObject newInstance(IlpClass ilpClass,
Object identifier,
boolean initializeAttributeValues)
The new instance will be created with the given identifier. If the
argument initializeAttributeValues is set, the new instance
will be initialized with the default attribute values. Default attribute
values are set in the attribute itself and are retrieved using
IlpAttribute.getDefaultValue().
Note: This method is supposed to be called by a subclass, the subclass passing itself as the first parameter.
ilpClass - Business classidentifier - Object identifierinitializeAttributeValues -
IlpObject interface.IlpObject.getIdentifier(),
IlpAttribute.getDefaultValue()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||