info.aduna.gee.publication.simpleshop
Class OptionValue
java.lang.Object
info.aduna.gee.publication.simpleshop.OptionValue
public class OptionValue
- extends Object
|
Constructor Summary |
OptionValue(String serialized)
Create an OptionValue from its serialized version. |
OptionValue(String value,
double price,
char priceType,
int sortOrder)
Create a new OptionValue. |
|
Method Summary |
String |
toShortString()
Creates a String representation of this OptionsValue that contains
only the essential information for the server-side to work with. |
String |
toString()
Creates a String representation of this OptionValue that contains
all information about the OptionValue. |
FIXED
public static final char FIXED
- See Also:
- Constant Field Values
PERCENTAGE
public static final char PERCENTAGE
- See Also:
- Constant Field Values
PERCENTAGE_TOTAL
public static final char PERCENTAGE_TOTAL
- See Also:
- Constant Field Values
OVERRIDE
public static final char OVERRIDE
- See Also:
- Constant Field Values
OVERRIDE_TOTAL
public static final char OVERRIDE_TOTAL
- See Also:
- Constant Field Values
value
public String value
price
public double price
priceType
public char priceType
sortOrder
public int sortOrder
OptionValue
public OptionValue(String value,
double price,
char priceType,
int sortOrder)
- Create a new OptionValue.
- Parameters:
value - the name/description of this OptionValueprice - the price of this OptionValuepriceType - an indication of how to use the price of this OptionValue
OptionValue
public OptionValue(String serialized)
- Create an OptionValue from its serialized version.
- Parameters:
serialized - a String containing a saved WProperties- See Also:
WProperties
toString
public String toString()
- Creates a String representation of this OptionValue that contains
all information about the OptionValue.
Use this when communicating from server to client.
- Overrides:
toString in class Object
toShortString
public String toShortString()
- Creates a String representation of this OptionsValue that contains
only the essential information for the server-side to work with.
Use this when sending data from client to server.
Copyright © 1997-2008 Aduna. All Rights Reserved.