public class Reference
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element |
element |
From |
from |
java.lang.Object |
result |
Constructor and Description |
---|
Reference(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
Create a reference to the input object based on its type.
|
Reference(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element,
From from,
java.lang.Object result)
Create a Reference and assign all of its members.
|
Reference(java.lang.Object object)
Create a reference to a result
|
Modifier and Type | Method and Description |
---|---|
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element |
getElement() |
From |
getFrom() |
static Reference |
getPropertyReference(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element,
com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property property)
Create reference to values of the property owned by the input element
that matches the input property.
|
java.lang.Object |
getResult() |
boolean |
isResultEditable()
Determines whether result should be editable based on current view
editor, a result is not editable if:
any of the result/element/from properties are null
the source element is a slot and its corresponding property has
multiplicity > 1
the result is not a literal or made up of literals (string, number,
boolean)
|
void |
setResult(java.lang.Object result) |
java.lang.String |
toString() |
public com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element
public From from
public java.lang.Object result
public Reference(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, From from, java.lang.Object result)
element
- the source of the entryfrom
- what aspect of the source to showresult
- the value to be shownpublic Reference(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element)
element
- public Reference(java.lang.Object object)
object
- the result referencedpublic java.lang.String toString()
toString
in class java.lang.Object
public static Reference getPropertyReference(com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element element, com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Property property)
element
- owner of the propertyproperty
- a property similarly named to the property of element to be
referencedpublic boolean isResultEditable()
public java.lang.Object getResult()
public void setResult(java.lang.Object result)
result
- the result to setpublic com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Element getElement()
public From getFrom()