com.ashridgetech.jamda.ejb.uml
Class UpdateObjectType

java.lang.Object
  |
  +--com.ashridgetech.jamda.uml.ModelElement
        |
        +--com.ashridgetech.jamda.uml.Type
              |
              +--com.ashridgetech.jamda.uml.StructuredType
                    |
                    +--com.ashridgetech.jamda.uml.ClassType
                          |
                          +--com.ashridgetech.jamda.ejb.uml.DataTransferObjectType
                                |
                                +--com.ashridgetech.jamda.ejb.uml.UpdateObjectType

public class UpdateObjectType
extends DataTransferObjectType

A UML representation of an Updates Object class.

Version:
1.0
Author:
paulb

Nested Class Summary
 
Nested classes inherited from class com.ashridgetech.jamda.uml.StructuredType
StructuredType.Aggregation, StructuredType.PropertyImpl, StructuredType.Visibility
 
Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException
 
Field Summary
 
Fields inherited from class com.ashridgetech.jamda.ejb.uml.DataTransferObjectType
STD_OBJECT_ID_NAME, STD_OBJECT_ID_TYPE
 
Fields inherited from class com.ashridgetech.jamda.uml.StructuredType
READ_ONLY, UNBOUNDED, WRITABLE
 
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement
DUMMY_STORE
 
Constructor Summary
  UpdateObjectType(ru.novosoft.uml.foundation.core.MClass mc, ModelPackage parentPackage)
          Initialises new UpdateObjectType during loading.
(package private) UpdateObjectType(ModelPackage parentPackage, java.lang.String name, ClassType source, Actor actor)
          Creates a new UpdateObjectType belonging to a ModelPackage.
 
Method Summary
protected  void addHasProperty(Property property)
          Add the hasXXX method and attribute for an updates object property.
protected  void addUpdateProperty(Property property)
          Add the get/setXXX method and attribute for an updates object property.
protected  Type findPropertyType(Property property)
          Find the Type to use in this value object for a property of the source class.
protected  java.lang.String hasPropertyName(Property property)
           
protected  void setup()
          Set up the characteristics from the source class.
 
Methods inherited from class com.ashridgetech.jamda.ejb.uml.DataTransferObjectType
factory, getActor, getOidName, getOidType, getSourceClass, setup
 
Methods inherited from class com.ashridgetech.jamda.uml.ClassType
addInterface, addProperty, checkValid, getAssociationEnds, getAttribute, getAttribute, getAttribute, getAttributes, getAttributes, getAttributes, getAttributes, getConstructors, getInterfaces, getSubElementStore, getSuperClass, isAbstract, isSimple, makeProperties, makeProperty, propertyInitCode, setAbstract, setSuperClass, setVisibility
 
Methods inherited from class com.ashridgetech.jamda.uml.StructuredType
addProperties, addReadOnlyProperty, addSuperType, addWritableProperty, getAllProperties, getAllTaggedValues, getOperation, getOperation, getOperations, getOperations, getOperations, getOperations, getOperations, getParentPackage, getProperties, getProperty, getSubTypes, getSuperTypes, getVisibility, load, setStructuredTypeVisibility
 
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getName, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, toString, type, type, type, xpath, xpathList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateObjectType

UpdateObjectType(ModelPackage parentPackage,
                 java.lang.String name,
                 ClassType source,
                 Actor actor)
Creates a new UpdateObjectType belonging to a ModelPackage. Package scope - use DataTransferObjectTypeFactory.getUpdateObjectType(com.ashridgetech.jamda.uml.ClassType, com.ashridgetech.jamda.uml.Actor) to create a UpdateObjectType .


UpdateObjectType

public UpdateObjectType(ru.novosoft.uml.foundation.core.MClass mc,
                        ModelPackage parentPackage)
Initialises new UpdateObjectType during loading.

Method Detail

setup

protected void setup()
Set up the characteristics from the source class.


findPropertyType

protected Type findPropertyType(Property property)
Find the Type to use in this value object for a property of the source class.

Specified by:
findPropertyType in class DataTransferObjectType

addHasProperty

protected void addHasProperty(Property property)
Add the hasXXX method and attribute for an updates object property.

Parameters:
property - the source property

addUpdateProperty

protected void addUpdateProperty(Property property)
Add the get/setXXX method and attribute for an updates object property. NOTE: this method relies on StructuredType.addWritableProperty(com.ashridgetech.jamda.uml.ModelElement, java.lang.String, com.ashridgetech.jamda.uml.Type) setting the operation's Procedure

Parameters:
property - the source property

hasPropertyName

protected java.lang.String hasPropertyName(Property property)


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.