Package com.saperion.ws.wrapper
Class SaWsProperty
- java.lang.Object
-
- com.saperion.ws.wrapper.SaWsProperty
-
public class SaWsProperty extends java.lang.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SaWsProperty.ValueType
The Enum ValueType.
-
Constructor Summary
Constructors Constructor Description SaWsProperty()
Creates a new instance of SaWsProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the property (in Properties called key).SaWsProperty.ValueType
getType()
Returns the Type which is used for Transformations of the property.java.lang.String
getValue()
Returns the value of the property (in Properties called value).void
setName(java.lang.String sName)
Sets the name of the property (in Properties called key).void
setType(SaWsProperty.ValueType newType)
Sets the type of Property, which is used for transformations.void
setValue(java.lang.String val)
Sets the value of the property (in Properties called value).
-
-
-
Method Detail
-
setName
public void setName(java.lang.String sName)
Sets the name of the property (in Properties called key).- Parameters:
sName
- Property name
-
getName
public java.lang.String getName()
Returns the name of the property (in Properties called key).- Returns:
- Returns the name of the property
-
getValue
public java.lang.String getValue()
Returns the value of the property (in Properties called value).- Returns:
- Returns the value of the property
-
setValue
public void setValue(java.lang.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.
-
-