Class TemplateSpec
- java.lang.Object
-
- org.proforma.variability.transfer.TemplateSpec
-
public class TemplateSpec extends Object
-
-
Constructor Summary
Constructors Constructor Description TemplateSpec()
TemplateSpec(TemplateSpec other)
TemplateSpec(VarSpecRoot cvs, CV defaultValue, MatSpec matSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterUnmarshal(javax.xml.bind.Unmarshaller unused1, Object unused2)
PostprocessingCVp
getCVp()
CV
getDefaultValue()
MatSpec
getMatSpec()
VarSpecRoot
getVarSpec()
void
setDefaultValue(CV defaultValue)
This stores a copy of the parameter after being converted to value representation (no specs).void
setMatSpec(MatSpec matSpec)
void
setVarSpec(VarSpecRoot varSpec)
void
setVarSpec(VarSpecRoot cvSpec, CV defaultValue)
This stores both variability data.String
toString()
-
-
-
Constructor Detail
-
TemplateSpec
public TemplateSpec()
-
TemplateSpec
public TemplateSpec(VarSpecRoot cvs, CV defaultValue, MatSpec matSpec)
-
TemplateSpec
public TemplateSpec(TemplateSpec other)
-
-
Method Detail
-
afterUnmarshal
public void afterUnmarshal(javax.xml.bind.Unmarshaller unused1, Object unused2)
Postprocessing
-
getVarSpec
public VarSpecRoot getVarSpec()
-
setVarSpec
public void setVarSpec(VarSpecRoot varSpec)
-
getDefaultValue
public CV getDefaultValue()
-
setDefaultValue
public void setDefaultValue(CV defaultValue)
This stores a copy of the parameter after being converted to value representation (no specs).- Parameters:
defaultValue
- The parameter must be fully equipped with associated Vps. This can be accomplished by callingCV.pushCVp(CVp)
immediately before. Alternately call#setVarSpec(CVSpec, CV)
.
-
setVarSpec
public void setVarSpec(VarSpecRoot cvSpec, CV defaultValue)
This stores both variability data. The default value will automatically be equipped with the Vps from the cvSpec parameter and automatically converted to value representation (no specs).- Parameters:
cvSpec
-defaultValue
-
-
getMatSpec
public MatSpec getMatSpec()
-
setMatSpec
public void setMatSpec(MatSpec matSpec)
-
getCVp
public CVp getCVp()
-
-