public class UmlParameter extends AbstractUmlObject
Modifier and Type | Class and Description |
---|---|
static class |
UmlParameter.Data
Data from the UML model repository specific to
UmlParameter . |
static class |
UmlParameter.Kind |
Modifier and Type | Field and Description |
---|---|
private UmlOperation |
_containingOperation |
private UmlParameter.Data |
_data |
private static org.apache.log4j.Logger |
_logger |
private UmlClass |
_type |
static java.util.List<java.lang.String> |
STEREOTYPES
Allowed stereotypes for UML operation parameters.
|
CLASS_SEPARATOR, NULL_OBJ_NAME, PACKAGE_SEPARATOR
Constructor and Description |
---|
UmlParameter(UmlClass type,
UmlObjectData objData,
UmlParameter.Data data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
UmlOperation |
getContainingOperation() |
java.lang.String |
getEaTypeInfo()
Returns known (string) info from EA; useful to display in case the type of this parameter in
EA model is not a valid UML class, so the model can be corrected.
|
UmlKind |
getKind()
Returns kind of this UML object, as assigned by the application.
|
Nature |
getNature()
Returns the nature of this UML object, which determines the validation rules to apply, and
sometimes document generation formats.
|
OwningWg |
getOwner()
Returns the IEC working group owning this UML object, as calculated by the application based
on the UML model structure.
|
java.lang.String |
getQualifiedName()
Returns the name of this UML object combined with some container-related information (e.g.,
packageName.className, or containingPackageName.packageName).
|
private java.lang.String |
getQualifiedName(boolean withStereotype) |
java.lang.String |
getSignature()
E.g., "MyClass[] myArg".
|
UmlClass |
getType() |
boolean |
isArray() |
boolean |
isInformative()
Returns whether this UML object is informative (and thus should be ignored when generating
official IEC documents).
|
private boolean |
isInitialised() |
(package private) void |
setContainingOperation(UmlOperation containingOperation)
Sets containing class for this attribute.
|
java.lang.String |
toString() |
addTaggedValue, classifyPerScope, classifyPerScopePerTag, classifyPerTag, collectDuplicateDescriptions, collectDuplicateNames, collectForScope, collectNames, collectQNames, findWithSameUuidAndLog, getAlias, getDescription, getHtmlDescription, getId, getName, getPredefinedTagNames, getSince, getStereotype, getTaggedValues, getUnallowedTagNames, getUuid, getVisibility, isDeprecated, saveTags, toShortString, toShortString, validateTag
private static final org.apache.log4j.Logger _logger
public static final java.util.List<java.lang.String> STEREOTYPES
private final UmlParameter.Data _data
private final UmlClass _type
private UmlOperation _containingOperation
public UmlParameter(UmlClass type, UmlObjectData objData, UmlParameter.Data data)
setContainingOperation(UmlOperation)
to correctly set reference.type
- objData
- data
- java.lang.NullPointerException
- if any argument is null.void setContainingOperation(UmlOperation containingOperation)
containingOperation
- non-null containing operation.java.lang.RuntimeException
- if containing operation already set.public UmlOperation getContainingOperation()
public java.lang.String getEaTypeInfo()
public boolean isArray()
public UmlClass getType()
public java.lang.String getSignature()
private boolean isInitialised()
public OwningWg getOwner()
Returns owner, null if parameter has not yet been added to its operation.
getOwner
in interface UmlObject
getOwner
in class AbstractUmlObject
public Nature getNature()
Returns nature, null if parameter has not yet been added to its operation.
getNature
in interface UmlObject
getNature
in class AbstractUmlObject
public boolean isInformative()
Returns whether this is informative, false if parameter has not yet been added to its operation.
isInformative
in interface UmlObject
isInformative
in class AbstractUmlObject
public UmlKind getKind()
UmlObject
getKind
in interface UmlObject
getKind
in class AbstractUmlObject
public java.lang.String getQualifiedName()
UmlObject
getQualifiedName
in interface UmlObject
getQualifiedName
in class AbstractUmlObject
private java.lang.String getQualifiedName(boolean withStereotype)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2009-2015 Tatjana (Tanja) Kostic