atg.commerce.pricing
Class Aggregator

java.lang.Object
  extended by atg.commerce.pricing.Aggregator
Direct Known Subclasses:
PropertyAggregator, SpendAmountAggregator

public abstract class Aggregator
extends java.lang.Object

Base abstract class for an aggregator.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
Aggregator()
           
 
Method Summary
 java.util.List<java.lang.String> getOperations()
          Getter for the operations property, which is the list of operations that this aggregator supports.
 java.lang.String getOverrideProperty()
          Getter for the override property, which is the the name of the property that this aggregator is overriding (if any at all).
 boolean isValidOperation(java.lang.String pOperation)
          Returns true if the given operation is supported for the aggregator, false otherwise.
 void setOperations(java.util.List<java.lang.String> pOperations)
          Setter for the aggregators property.
 void setOverrideProperty(java.lang.String pOverrideProperty)
          Setter for the override property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

Aggregator

public Aggregator()
Method Detail

setOperations

public void setOperations(java.util.List<java.lang.String> pOperations)
Setter for the aggregators property.

Parameters:
pOperations - map of aggregators

getOperations

public java.util.List<java.lang.String> getOperations()
Getter for the operations property, which is the list of operations that this aggregator supports.

Returns:
a map of aggregators

setOverrideProperty

public void setOverrideProperty(java.lang.String pOverrideProperty)
Setter for the override property.

Parameters:
pOverrideProperty - the name of the property that this aggregator is overriding (if any at all)

getOverrideProperty

public java.lang.String getOverrideProperty()
Getter for the override property, which is the the name of the property that this aggregator is overriding (if any at all).

Returns:
the name of the property that this aggregator is overriding (if any at all)

isValidOperation

public boolean isValidOperation(java.lang.String pOperation)
Returns true if the given operation is supported for the aggregator, false otherwise.

Parameters:
pOperation - the name of the operation to validate
Returns:
true if the operation is supported for the aggregator, false otherwise