public interface IlpClass extends IlpAttributeGroup
IlpClass
represent business classes of the model.
They provide access to the class hierarchy, and to the class attributes.Modifier and Type | Method and Description |
---|---|
Collection<IlpClass> |
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.
|
addAttributeGroupListener, fireEvent, getAttribute, getAttributes, getDeclaredAttributes, getName, hasAttribute, removeAttributeGroupListener
IlpClass getSuperClass()
IlpClass
.
This method should return null
when this class
does not have a superclass.IlpClass
superclass.Collection<IlpClass> 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
- Whether or not the default attribute
values should be initialized.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
- Whether or not the default attribute
values should be initialized.IlpObject
interface.IlpObject.getIdentifier()
,
IlpAttribute.getDefaultValue()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.