Class SaWsProperty

java.lang.Object
com.saperion.ws.wrapper.SaWsProperty

public class SaWsProperty extends Object
This class is needed because JAX-B can't create xml files out of hashmaps. The class java.util.Properties based on a hashmap and so we need a wrapper class. You can achieve the same name-value pairs with a list with SaWsProperties. To avoid problems with seperating characters this class was created.
Author:
Daniel Manzke created 29. August 2007, 16:32
  • Constructor Details

    • SaWsProperty

      public SaWsProperty()
      Creates a new instance of SaWsProperty.
  • Method Details

    • setName

      public void setName(String sName)
      Sets the name of the property (in Properties called key).
      Parameters:
      sName - Property name
    • getName

      public String getName()
      Returns the name of the property (in Properties called key).
      Returns:
      Returns the name of the property
    • getValue

      public String getValue()
      Returns the value of the property (in Properties called value).
      Returns:
      Returns the value of the property
    • setValue

      public void setValue(String val)
      Sets the value of the property (in Properties called value).
      Parameters:
      val - String value
    • setType

      public void setType(SaWsProperty.ValueType newType)
      Sets the type of Property, which is used for transformations.
      Parameters:
      newType - Data Type used for Transformations
    • getType

      public SaWsProperty.ValueType getType()
      Returns the Type which is used for Transformations of the property.
      Returns:
      the current value type.