AROM-2_2_13

arom.kr.model
Interface AMClass

All Superinterfaces:
AMEntity, ClassExtension, ClassIntention, helix.util.beans.CompoundPropertySet, DocumentableObject, Extension, InstanceSet, InstanciationControlableObject, Intention, Membership, NamedEntity, NameSpace, helix.util.beans.PropertySet, SpecializableEntity, Structure

public interface AMClass
extends Structure, ClassIntention, ClassExtension

An AMClass object is the Java representation of an AROM class. An AROM class represents a set of objects sharing common properties. An AROM class is caracterized by it's intention (ClassIntention) and it's extention (Extension) and acts as an object factory.

See Also:
Structure, ClassIntention, ClassExtension, AMObject

Field Summary
 
Fields inherited from interface arom.kr.model.SpecializableEntity
PARENT, SPECIALIZATIONS
 
Fields inherited from interface arom.kr.model.NamedEntity
NAME
 
Fields inherited from interface arom.kr.model.InstanceSet
INSTANCES
 
Fields inherited from interface arom.kr.model.Intention
SLOTS, VARIABLES
 
Method Summary
 Iterator allAssociations()
          Return an Iterator over all the AMAssociations which defines a role typed by this AMClass or one of its super-classes.
 Iterator associations()
          Return an Iterator over all the AMAssociations which defines a role typed by this AMClass.
 AMObject createObject()
          Creates an AROM object instance of this AROM class.
 AMObject createObject(String name)
          Creates an AROM object instance of this AROM class.
 
Methods inherited from interface arom.kr.model.Structure
getGeneralization, setGeneralization
 
Methods inherited from interface arom.kr.model.SpecializableEntity
addSpecialization, isGeneralizationOf, isSpecializationOf, lookupEntityExtended, removeSpecialization, specializations
 
Methods inherited from interface arom.kr.model.NameSpace
isValidName, lookupEntity, resolveQualifiedName
 
Methods inherited from interface arom.kr.model.NamedEntity
getFQName, getName, getNameSpace, setName
 
Methods inherited from interface arom.kr.model.AMEntity
addEntityListener, delete, getContainer, getIdentifier, removeEntityListener, verify
 
Methods inherited from interface arom.kr.model.DocumentableObject
applyDocumentationModifier, cancelDocumentationModifier, documentationModifiers, getDocumentation, lookupDocumentationModifier
 
Methods inherited from interface helix.util.beans.PropertySet
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from interface helix.util.beans.CompoundPropertySet
addCompositionChangeListener, addCompositionChangeListener, addVetoableCompositionChangeListener, addVetoableCompositionChangeListener, removeCompositionChangeListener, removeCompositionChangeListener, removeVetoableCompositionChangeListener, removeVetoableCompositionChangeListener
 
Methods inherited from interface arom.kr.model.Extension
properContains, properInstances, properSize
 
Methods inherited from interface arom.kr.model.InstanceSet
addInstance, addInstance, contains, getDelegate, instances, removeInstance, setDelegate, size
 
Methods inherited from interface arom.kr.model.Intention
createSlot, createVariable, lookupSlot, lookupVariable, removeSlot, removeVariable, slotCount, slotCount, slots, slots, variableCount, variables
 
Methods inherited from interface arom.kr.model.Membership
checkMembership
 
Methods inherited from interface arom.kr.model.InstanciationControlableObject
applyICModifier, cancelICModifier, getInstanciationControls, instanciationControlsModifiers, lookupICModifier
 
Methods inherited from interface arom.kr.model.ClassExtension
lookupObject, lookupProperObject
 

Method Detail

createObject

public AMObject createObject()
                      throws EntityCreationException
Creates an AROM object instance of this AROM class. The name of the instance is automatically generated.

Returns:
the created AROM object.
Throws:
EntityCreationException - if the creation process fails.

createObject

public AMObject createObject(String name)
                      throws EntityCreationException
Creates an AROM object instance of this AROM class. The name of the instance is the supplied name.

Parameters:
name - the name of the object to create.
Returns:
the created object.
Throws:
EntityCreationException - if the creation process fails. This may occur if the supplied name is already affected and cannot be reused.

associations

public Iterator associations()
Return an Iterator over all the AMAssociations which defines a role typed by this AMClass.

Returns:
an Iterator over association which defines a role typed by this class.

allAssociations

public Iterator allAssociations()
Return an Iterator over all the AMAssociations which defines a role typed by this AMClass or one of its super-classes. In other words, all associations which accept an AMObject of this class as role value.

Returns:
an Iterator over association which defines a role typed by this class ot one of its super-classes.

AROM-2_2_13