public class MethodArgument extends Object
| Constructor and Description |
|---|
MethodArgument(Relation relation,
Attribute attribute)
Creates a method argument.
|
MethodArgument(Relation relation,
String foreignAttributeName,
Attribute attribute)
Creates a method argument for another foreign attribute as the relation points to.
|
MethodArgument(Relation relation,
String foreignAttributeName,
String value)
Creates a method argument for another foreign attribute as the relation points to.
If value is a String it must be enclosed in double quotes. |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute()
Gets the local attribute.
|
Attribute |
getForeignAttribute()
Gets the foreign attribute.
|
String |
getMethodArgument()
Gets the string for the method argument.
|
String |
getSetterMethod()
Gets the name of the setter method of the foreign attribute.
|
String |
getValue()
Gets the fixed value.
|
boolean |
isValue()
Returns whether the method argument is a fixed value.
|
String |
toString() |
public MethodArgument(Relation relation, Attribute attribute)
relation - relation for delayed determination of the foreign attributeattribute - attribute of the current entitypublic MethodArgument(Relation relation, String foreignAttributeName, Attribute attribute)
relation - relation for delayed determination of the foreign attributeforeignAttributeName - the name of the foreign attributeattribute - attribute of the current entitypublic MethodArgument(Relation relation, String foreignAttributeName, String value)
relation - relation for delayed determination of the foreign attributeforeignAttributeName - the name of the foreign attributevalue - the fixed value in its representation as a stringpublic boolean isValue()
public Attribute getForeignAttribute()
public Attribute getAttribute()
public String getValue()
public String getMethodArgument()
public String getSetterMethod()
Tentackle - a domain driven enterprise framework