Class MatMethod
- java.lang.Object
-
- org.proforma.variability.transfer.MatMethod
-
public class MatMethod extends Object
A MatMethod applies some operation to data supplied by a MatArtifact; the result of the operation is passed to the MatArtifact's consumption feature.
A MatMethod gets its data from two sources. First, the artifact supplies a value to the method. Second the variation point resolution supplies some variation point values. The MatMethod may decide, to restrict its attention to a specified subset of all variation points. By default all variation points are passed to the method.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MatMethod
arithmeticOperation(String id, List<String> restrictVp, MatMethodOperator operator)
MatMethod
clone()
<T> T
findAnyByInstanceOfClass(Class<T> clazz)
List<Object>
getAny()
Class<?>
getGenericType()
String
getId()
MatMethodType
getMethodType()
MatMethodOperator
getOperator()
String
getPrefix()
MatMethodProvider<?>
getProvider()
List<String>
getRestrictVp()
String
getSuffix()
MatMethod
includeAny(Object... anys)
void
init(CV cv)
static MatMethod
mustache(String id, List<String> restrictVp, String prefix, String suffix)
static MatMethod
other(String id, List<String> restrictVp)
void
setId(String id)
MatMethod
setOperator(MatMethodOperator operator)
MatMethod
setPrefix(String prefix)
void
setProvider(MatMethodProvider<?> provider)
MatMethod
setSuffix(String suffix)
static MatMethod
setVpValue(String id, List<String> restrictVp)
String
toString()
-
-
-
Constructor Detail
-
MatMethod
public MatMethod()
-
MatMethod
public MatMethod(String id, MatMethodType methodType, List<String> restrictVp)
-
MatMethod
public MatMethod(MatMethod other)
-
-
Method Detail
-
mustache
public static MatMethod mustache(String id, List<String> restrictVp, String prefix, String suffix)
-
arithmeticOperation
public static MatMethod arithmeticOperation(String id, List<String> restrictVp, MatMethodOperator operator)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getMethodType
public MatMethodType getMethodType()
-
getPrefix
public String getPrefix()
-
getSuffix
public String getSuffix()
-
getOperator
public MatMethodOperator getOperator()
-
setOperator
public MatMethod setOperator(MatMethodOperator operator)
-
findAnyByInstanceOfClass
public <T> T findAnyByInstanceOfClass(Class<T> clazz)
-
getGenericType
public Class<?> getGenericType()
-
getProvider
public MatMethodProvider<?> getProvider()
-
setProvider
public void setProvider(MatMethodProvider<?> provider)
-
init
public void init(CV cv)
-
-