Class CVVp

java.lang.Object
org.proforma.variability.transfer.CVVp
All Implemented Interfaces:
Serializable

public class CVVp extends Object implements Serializable
See Also:
  • Constructor Details

    • CVVp

      public CVVp()
    • CVVp

      public CVVp(CVp cvp, CV cv)
    • CVVp

      public CVVp(CVVp other)
  • Method Details

    • create

      public static CVVp create(CV cv)
    • create

      public static CVVp create(V... items)
    • create

      public static CVVp create(Collection<V> items)
    • getCVp

      public CVp getCVp()
    • setCVp

      public void setCVp(CVp cvp)
    • getCV

      public CV getCV()
    • setCV

      public void setCV(CV cs)
    • getVp

      public Vp getVp(String key)
    • get

      public V get(String key)
    • getChar

      public Character getChar(String key)
    • getInt

      public Integer getInt(String key)
    • getDouble

      public Double getDouble(String key)
    • getString

      public String getString(String key)
    • getBoolean

      public Boolean getBoolean(String key)
    • getTableValue

      public CVList getTableValue(String key)
    • getTableSpec

      public VarSpecNodeTable getTableSpec(String key)
    • switchToValue

      public CVVp switchToValue()
    • switchToSpecs

      public CVVp switchToSpecs()
    • set

      public void set(String key, V v)
    • afterUnmarshal

      public void afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
      Postprocessing
    • prettyPrint

      public void prettyPrint()
    • prettyPrint

      public void prettyPrint(PrintStream out)
    • projectToCVpLeavingNonMatchingVpsNull

      public CVVp projectToCVpLeavingNonMatchingVpsNull(CVp cvp)
    • projectToCVp

      public CVVp projectToCVp(String... vpKeys)
    • createIntersectionWithCVp

      public CVp createIntersectionWithCVp(CVp otherCVp)
    • isAtLeastOneVpMatching

      public boolean isAtLeastOneVpMatching(CVp otherCVp)
    • getAsKeyOrderedMap

      public LinkedHashMap<String,Object> getAsKeyOrderedMap()
      Returns:
      a mapping from vp keys to values. The value type is determined by the Vp type. E.g. for a Vi the returned value is Integer. For a Vt the returned value is a nested List<Map<String,Object>>.
    • getAsKeyOrderedMap

      public LinkedHashMap<String,Object> getAsKeyOrderedMap(List<String> restrictToKeys)
      Returns:
      a mapping from vp keys to values. The value type is determined by the Vp type. E.g. for a Vi the returned value is Integer. For a Vt the returned value is a nested List<Map<String,Object>>.
    • toString

      public String toString()
      Overrides:
      toString in class Object