|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.model.IlpAbstractClass
public abstract class IlpAbstractClass
ILOG CPL Abstract Business Class.
Instances of IlpClass represent classes of the model.
This class provides a basic implementation that should be subclassed
in order to create the user model classes.
| Constructor Summary | |
|---|---|
protected |
IlpAbstractClass(String name,
IlpClass superClass,
List subClasses)
Creates an IlpAbstractClass. |
| Method Summary | |
|---|---|
void |
addSubClass(IlpClass subClass)
Adds a subclass to the list. |
String |
getName()
Returns the name of the class. |
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 whether this IlpClass
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
the parent. |
void |
removeSubClass(IlpClass subClass)
Removes a class from the subclasses list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ilog.cpl.model.IlpClass |
|---|
newInstance, newInstance |
| Methods inherited from interface ilog.cpl.model.IlpAttributeGroup |
|---|
addAttributeGroupListener, fireEvent, getAttribute, getAttributes, getDeclaredAttributes, hasAttribute, removeAttributeGroupListener |
| Constructor Detail |
|---|
protected IlpAbstractClass(String name,
IlpClass superClass,
List subClasses)
IlpAbstractClass.
name - Business class namesuperClass - The superclass of the business class.subClasses - The subclasses of the new business class.| Method Detail |
|---|
public String getName()
getName in interface IlpAttributeGrouppublic IlpClass getSuperClass()
IlpClass.
This method should return null when this class
has no superclass.
getSuperClass in interface IlpClassIlpClass superclass.public Collection getSubClasses()
Collection.
If the subclass collection is empty, this method returns
Collections.EMPTY_LIST.
getSubClasses in interface IlpClassIlpClass instances.public boolean isSubClassOf(IlpClass parent)
true if the current class is a subclass of
the parent.
isSubClassOf in interface IlpClassparent - The superclass being checked.
parent class.public boolean isAssignableFrom(IlpClass cls)
IlpClass
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.
isAssignableFrom in interface IlpClasscls - The IlpClass object to be checked.
cls can be assigned to objects of this class.public void addSubClass(IlpClass subClass)
This methods adds the given class as a subclass of this instance.
This method does not update the superclass information in the
argument class. To do this, use the method setSuperClass.
public void removeSubClass(IlpClass subClass)
This methods removes the given class as subclass of this instance.
This method does not update the superclass information in the
argument class. To do this, use the method setSuperClass.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||