pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.shop
Class StockUpdaterJobletConfig.ExtraActivationValue

java.lang.Object
  extended by org.torweg.pulse.component.shop.StockUpdaterJobletConfig.ExtraActivationValue
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
StockUpdaterJobletConfig

public static final class StockUpdaterJobletConfig.ExtraActivationValue
extends java.lang.Object
implements java.io.Serializable

The configuration for an extra activation value.

Version:
$Revision: 1478 $
Author:
Christian Schatt
See Also:
Serialized Form

Constructor Summary
protected StockUpdaterJobletConfig.ExtraActivationValue()
          Deprecated. 
  StockUpdaterJobletConfig.ExtraActivationValue(java.lang.String pItem, int pValue)
          The constructor that sets the item's EAN and the activation value.
 
Method Summary
 java.lang.String getItem()
          Returns the EAN of the shop item the activation value is given for.
 int getValue()
          Returns the value of the available number of the shop item needed to activate the shop item or leave it active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StockUpdaterJobletConfig.ExtraActivationValue

@Deprecated
protected StockUpdaterJobletConfig.ExtraActivationValue()
Deprecated. 

The no-argument constructor.


StockUpdaterJobletConfig.ExtraActivationValue

public StockUpdaterJobletConfig.ExtraActivationValue(java.lang.String pItem,
                                                     int pValue)
The constructor that sets the item's EAN and the activation value.

Parameters:
pItem - the item's EAN to set
pValue - the activation value to set
Throws:
java.lang.NullPointerException - if the given EAN is null
java.lang.IllegalArgumentException - if the given EAN is an empty String
Method Detail

getItem

public java.lang.String getItem()
Returns the EAN of the shop item the activation value is given for.

Returns:
the item's EAN

getValue

public int getValue()
Returns the value of the available number of the shop item needed to activate the shop item or leave it active.

Returns:
the activation value