info.aduna.gee.publication.simpleshop
Class OptionValue

java.lang.Object
  extended by info.aduna.gee.publication.simpleshop.OptionValue

public class OptionValue
extends Object


Field Summary
static char FIXED
           
static char OVERRIDE
           
static char OVERRIDE_TOTAL
           
static char PERCENTAGE
           
static char PERCENTAGE_TOTAL
           
 double price
           
 char priceType
           
 int sortOrder
           
 String value
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

OptionValue

public OptionValue(String value,
                   double price,
                   char priceType,
                   int sortOrder)
Create a new OptionValue.

Parameters:
value - the name/description of this OptionValue
price - the price of this OptionValue
priceType - 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
Method Detail

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.