public class IltObjectInfo extends IlpDefaultClass
IltObjectInfo
instance describes a subclass of
IltObject
.IltObject
Constructor and Description |
---|
IltObjectInfo(Class clazz,
String description)
Creates the descriptor of an
IltObject subclass. |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(IlpAttribute a,
Object defaultValue)
Add a new attribute to the model with a given default value.
|
static Enumeration |
AllObjectInfos()
Returns an enumeration of all existing
IltObjectInfo
instances. |
static IltObjectInfo |
FromClass(Class clazz,
boolean forceLoadInit)
Returns the class information for an object class.
|
ilog.tgo.attacher.IltAttacherInfo |
getAttacherInfo(ilog.tgo.graphic.internal.IltGraphicRepresentationStyle rep)
Returns the instance of
IltAttacherInfo which represents
the given graphical representation. |
ilog.tgo.attacher.IltAttacherInfoController |
getAttacherInfoController()
Returns the instance responsible for controlling the attacher
information for the different types of graphical representation.
|
Object |
getDefaultValue(IlpAttribute a)
Return the default value for the attribute, if there is one.
|
Class |
getDefiningClass()
Returns the object class, a subclass of
IltObject . |
String |
getDescription()
Returns a description of the object class.
|
ilog.tgo.graphic.internal.IltClassLegend |
getLegend()
Deprecated.
Please use
IlpStyleManager.getStyle(IlpClass) instead. |
ilog.tgo.mapper.attribute.IltMapAttributeStrategy |
getMapAttributeStrategy()
Retrieves the strategy to map the attributes of the class being
represented by this info.
|
ilog.tgo.mapper.IltObjectMapper |
getObjectMapper()
Returns the most specific object mapper.
|
ilog.tgo.mapper.attribute.IltObjectSystemMapper |
getObjectSystemMapper()
Returns the object that stores the attribute mappers for this
class.
|
IltObjectInfo |
getParent()
Returns the parent class descriptor.
|
void |
initializeDefaultValues(IlpObject bo)
Initialize the default values set in this business class, by adding
these attributes with their default values to the given business object.
|
IlpObject |
newInstance(IlpClass ilpClass,
Object identifier,
boolean initializeAttributeValues)
Creates an instance of the class or of one of its subclass.
|
IlpObject |
newInstance(Object identifier,
boolean initializeAttributeValues)
Creates an instance of the class.
|
void |
removeAttributeGroup(IlpAttributeGroup model)
Removes the given model from the list of models.
|
void |
setAttacherInfo(ilog.tgo.graphic.internal.IltGraphicRepresentationStyle rep,
ilog.tgo.attacher.IltAttacherInfo info)
Sets the instance of
IltAttacherInfo which represents
the given graphical representation. |
void |
setMapAttributeStrategy(ilog.tgo.mapper.attribute.IltMapAttributeStrategy strategy)
Defines a strategy to map the attributes of the class being
represented by this info.
|
void |
setObjectMapper(ilog.tgo.mapper.IltObjectMapper mapper)
Sets the object to graphic mapper for this class of objects.
|
void |
setSuperClass(IlpClass superClass)
Sets the superclass.
|
addAttribute, addAttributeGroup, addAttributeGroupListener, fireEvent, getAttribute, getAttributeGroups, getAttributes, getDeclaredAttributes, hasAttribute, removeAttribute, removeAttributeGroupListener, toString
addSubClass, getName, getSubClasses, getSuperClass, isAssignableFrom, isSubClassOf, removeSubClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSubClass, removeSubClass
getSubClasses, getSuperClass, isAssignableFrom, isSubClassOf
getName
public static Enumeration AllObjectInfos()
IltObjectInfo
instances.IltObjectInfo
public static IltObjectInfo FromClass(Class clazz, boolean forceLoadInit)
forceLoadInit
- if true, force the loading and initialization of
the class, and don't return null
public Class getDefiningClass()
IltObject
.public String getDescription()
public IltObjectInfo getParent()
public IlpObject newInstance(Object identifier, boolean initializeAttributeValues)
newInstance
in interface IlpClass
newInstance
in class IlpDefaultClass
identifier
- Object identifier.initializeAttributeValues
- Whether or not the default attribute
values should be initialized.IlpObject
,
IlpAttribute.getDefaultValue()
public IlpObject newInstance(IlpClass ilpClass, Object identifier, boolean initializeAttributeValues)
newInstance
in interface IlpClass
newInstance
in class IlpDefaultClass
ilpClass
- Business class.identifier
- Object identifier.initializeAttributeValues
- Whether or not the default attribute
values should be initialized.IlpObject
,
IlpAttribute.getDefaultValue()
public void setSuperClass(IlpClass superClass)
This method is called automatically at construction time.
setSuperClass
in interface IlpMutableClass
setSuperClass
in class IlpDefaultClass
superClass
- Super classIllegalArgumentException
- if the given class
does not correspond to the super class specified at construction
time.IlpAbstractClass.addSubClass(ilog.cpl.model.IlpClass)
public void removeAttributeGroup(IlpAttributeGroup model)
removeAttributeGroup
in interface IlpMutableClass
removeAttributeGroup
in class IlpDefaultClass
IllegalArgumentException
- if the attribute group
being removed corresponds to the super class.public void addAttribute(IlpAttribute a, Object defaultValue)
public Object getDefaultValue(IlpAttribute a)
public void initializeDefaultValues(IlpObject bo)
IltObject.initializeDefaultValues()
public void setObjectMapper(ilog.tgo.mapper.IltObjectMapper mapper)
public ilog.tgo.mapper.IltObjectMapper getObjectMapper()
public ilog.tgo.mapper.attribute.IltObjectSystemMapper getObjectSystemMapper()
public ilog.tgo.attacher.IltAttacherInfoController getAttacherInfoController()
_attacherInfoController
should never be
used directly, instead this method must be called.public ilog.tgo.attacher.IltAttacherInfo getAttacherInfo(ilog.tgo.graphic.internal.IltGraphicRepresentationStyle rep)
IltAttacherInfo
which represents
the given graphical representation.public void setAttacherInfo(ilog.tgo.graphic.internal.IltGraphicRepresentationStyle rep, ilog.tgo.attacher.IltAttacherInfo info)
IltAttacherInfo
which represents
the given graphical representation.public void setMapAttributeStrategy(ilog.tgo.mapper.attribute.IltMapAttributeStrategy strategy)
public ilog.tgo.mapper.attribute.IltMapAttributeStrategy getMapAttributeStrategy()
@Deprecated public ilog.tgo.graphic.internal.IltClassLegend getLegend()
IlpStyleManager.getStyle(IlpClass)
instead.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.