|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.uml.ModelElement | +--com.ashridgetech.jamda.uml.Feature | +--com.ashridgetech.jamda.uml.Operation | +--com.ashridgetech.jamda.uml.Constructor
A UML Operation for a constructor of a ClassType
.
Restricts the settings of some of the properties to ensure
this is a valid constructor.
Nested Class Summary |
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.uml.Feature |
DEFAULT_OID_NAME |
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement |
DUMMY_STORE |
Constructor Summary | |
|
Constructor(ClassType owner)
Creates new constructor Constructor for a ClassType . |
protected |
Constructor(ru.novosoft.uml.foundation.core.MOperation mo,
ClassType owner)
Initialises new Constructor during loading. |
Method Summary | |
protected void |
add(ModelElement me)
Override the superclass method to store the return parameter separately. |
java.util.List |
addInitParameters(java.util.List properties)
Add a Parameter to this Constructor corresponding to each of a set of Property s. |
void |
checkValid()
Check whether this object is valid. |
ClassType |
getClassType()
Get the owner of this Constructor as a ClassType . |
Operation |
setAbstract(boolean isAbstract)
Override Operation.setAbstract(boolean) to prevent
this Constructor being made abstract. |
Operation |
setQuery(boolean isQuery)
Override Operation.setQuery(boolean) to prevent
this Constructor being marked as query only. |
Operation |
setStatic(boolean isStatic)
Override Operation.setStatic(boolean) to prevent
this Constructor being made static. |
Methods inherited from class com.ashridgetech.jamda.uml.Operation |
addParameters, getLinkedAttribute, getOwner, getParameter, getParameters, getProcedure, getReturnType, getSubElementStore, isAbstract, isQuery, isReturnMultiple, load, setAfterProcedure, setBeforeProcedure, setLinkedAttribute, setProcedure, setVisibility |
Methods inherited from class com.ashridgetech.jamda.uml.Feature |
getReaders, getVisibility, getWriters, isReadableBy, isStatic, isWritableBy, setFeatureStatic, setFeatureVisibility |
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement |
addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getName, getNsElement, 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 |
public Constructor(ClassType owner)
Constructor
for a ClassType
.
protected Constructor(ru.novosoft.uml.foundation.core.MOperation mo, ClassType owner)
Method Detail |
public ClassType getClassType()
Constructor
as a ClassType
.
Returns the same instance as Operation.getOwner()
.
ClassType
to which this belongsModelElement.getParentElement()
public Operation setAbstract(boolean isAbstract)
Operation.setAbstract(boolean)
to prevent
this Constructor
being made abstract.
Always throws an UnsupportedOperationException
.
setAbstract
in class Operation
isAbstract
- ignored
public Operation setStatic(boolean isStatic)
Operation.setStatic(boolean)
to prevent
this Constructor
being made static.
Always throws an UnsupportedOperationException
.
setStatic
in class Operation
isStatic
- ignored
public Operation setQuery(boolean isQuery)
Operation.setQuery(boolean)
to prevent
this Constructor
being marked as query only.
Always throws an UnsupportedOperationException
.
setQuery
in class Operation
isQuery
- ignored
public java.util.List addInitParameters(java.util.List properties)
Parameter
to this Constructor
corresponding to each of a set of Property
s.
Each parameter is used to initialise the corresponding Attribute
of the ClassType
that
owns this Constructor
.
The source
of each Parameter
is set to the
underlying element
of the corresponding Property
.
properties
- the Property
s which define the parameters. There must be an Attribute
in the ClassType
that contains this Constructor
with the same ModelElement.getOriginalSource()
.
Parameter
spublic void checkValid() throws java.lang.IllegalStateException
checkValid
in class Operation
java.lang.IllegalStateException
- if a problem is foundprotected void add(ModelElement me)
add
in class Operation
me
- The ModelElement
to be added to the map
Must not be null and its name
property must not be null
java.lang.IllegalArgumentException
- if mp
already belongs to another Model
or a ModelPackage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |