Class TemplateSpec

java.lang.Object
org.proforma.variability.transfer.TemplateSpec

public class TemplateSpec extends Object
  • Constructor Details

    • TemplateSpec

      public TemplateSpec()
    • TemplateSpec

      public TemplateSpec(VarSpecRoot cvs, CV defaultValue, MatSpec matSpec)
    • TemplateSpec

      public TemplateSpec(TemplateSpec other)
  • Method Details

    • 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 calling CV.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()
    • toString

      public String toString()
      Overrides:
      toString in class Object