Package com.saperion.ws.wrapper
Class SaWsProperty
java.lang.Object
com.saperion.ws.wrapper.SaWsProperty
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the property (in Properties called key).getType()
Returns the Type which is used for Transformations of the property.getValue()
Returns the value of the property (in Properties called value).void
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
Sets the value of the property (in Properties called value).
-
Constructor Details
-
SaWsProperty
public SaWsProperty()Creates a new instance of SaWsProperty.
-
-
Method Details
-
setName
Sets the name of the property (in Properties called key).- Parameters:
sName
- Property name
-
getName
Returns the name of the property (in Properties called key).- Returns:
- Returns the name of the property
-
getValue
Returns the value of the property (in Properties called value).- Returns:
- Returns the value of the property
-
setValue
Sets the value of the property (in Properties called value).- Parameters:
val
- String value
-
setType
Sets the type of Property, which is used for transformations.- Parameters:
newType
- Data Type used for Transformations
-
getType
Returns the Type which is used for Transformations of the property.- Returns:
- the current value type.
-