ilog.cpl.model
Class IlpBeansClass

java.lang.Object
  extended by ilog.cpl.model.IlpAbstractClass
      extended by ilog.cpl.model.IlpDefaultClass
          extended by ilog.cpl.model.IlpBeansClass
All Implemented Interfaces:
IlpAttributeGroup, IlpClass, IlpMutableAttributeGroup, IlpMutableClass

public class IlpBeansClass
extends IlpDefaultClass

Implementation of ILOG CPL class interface for Java Beans.

This class provides access to the class hierarchy, and to the class attributes.

It is essentially a wrapper around a Java class which follows the JavaBeans conventions.

Since:
JTGO 3.0

Constructor Summary
IlpBeansClass(Class beanClass, BeanInfo beanInfo, IlpClass superClass)
          Creates a new instance of IlpClass with the attributes present in the BeanInfo instances.
 
Method Summary
 Class getJavaClass()
          Returns the Java class being represented by this instance.
 IlpObject newInstance(Object identifier, boolean initializeAttributeValues)
          Creates an instance of the class.
 
Methods inherited from class ilog.cpl.model.IlpDefaultClass
addAttribute, addAttributeGroup, addAttributeGroupListener, fireEvent, getAttribute, getAttributeGroups, getAttributes, getDeclaredAttributes, hasAttribute, newInstance, removeAttribute, removeAttributeGroup, removeAttributeGroupListener, setSuperClass, toString
 
Methods inherited from class ilog.cpl.model.IlpAbstractClass
addSubClass, getName, getSubClasses, getSuperClass, isAssignableFrom, isSubClassOf, removeSubClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.cpl.model.IlpMutableClass
addSubClass, removeSubClass
 
Methods inherited from interface ilog.cpl.model.IlpClass
getSubClasses, getSuperClass, isAssignableFrom, isSubClassOf
 
Methods inherited from interface ilog.cpl.model.IlpAttributeGroup
getName
 
Methods inherited from interface ilog.cpl.model.IlpAttributeGroup
getName
 

Constructor Detail

IlpBeansClass

public IlpBeansClass(Class beanClass,
                     BeanInfo beanInfo,
                     IlpClass superClass)
Creates a new instance of IlpClass with the attributes present in the BeanInfo instances.

Method Detail

getJavaClass

public Class getJavaClass()
Returns the Java class being represented by this instance.


newInstance

public IlpObject newInstance(Object identifier,
                             boolean initializeAttributeValues)
Creates an instance of the class. The instance is an instance of the IlpObject interface. This implementation returns an IlpBeansObject instance.

Specified by:
newInstance in interface IlpClass
Overrides:
newInstance in class IlpDefaultClass
Parameters:
identifier - Object identifier.
Returns:
An object of this dynamic class.
See Also:
IlpObject, IlpAttribute.getDefaultValue()


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.