PageMixer demonstration

pagemixer.filter
Class BasketEntryIterationFilter

java.lang.Object
  |
  +--jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
        |
        +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
              |
              +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataIterationFilter
                    |
                    +--pagemixer.filter.BasketEntryIterationFilter
All Implemented Interfaces:
jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer, LocaleConstants, ShopConstants

public class BasketEntryIterationFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataIterationFilter
implements ShopConstants, LocaleConstants

Filter to iterate insetting basket entry information.

This filter finds token sequence between '<span class="Shop-Basket-Entry">' and '</span>', then passes it to filter pipeline consisting of below filters.

Sequence passing is done as same times as basket entry count.

See main(java.lang.String[]) to use as stand-alone application.


Inner Class Summary
static class BasketEntryIterationFilter.EntryCountAttr
          Filter to inset basket entry count information in token.
static class BasketEntryIterationFilter.EntryNameL18NText
          Filter to inset basket entry name text in token sequence.
static class BasketEntryIterationFilter.EntryNameText
          Filter to inset basket entry name text in token sequence.
static class BasketEntryIterationFilter.EntryPriceText
          Filter to inset basket entry price text in token sequence.
static class BasketEntryIterationFilter.EntryTotalText
          Filter to inset basket entry total price text in token sequence.
 
Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
jp.ne.dti.lares.foozy.pagemixer.mixer.Filter.Factory
 
Fields inherited from interface common.ShopConstants
CLASS_BASKET_ENTRY, CLASS_BASKET_TOTAL, CLASS_ENTRY_COUNT, CLASS_ENTRY_NAME, CLASS_ENTRY_PRICE, CLASS_ENTRY_TOTAL, PARAM_DISCARD_REQUEST, PARAM_ENTRY_ID_PREFIX, PARAM_PUT_REQUEST, PARAM_RECALC_REQUEST, PARAM_SESSION_ID, REQUEST_BASKET_ENTRY, SESSION_BASKET_ENTRY_PROVIDER
 
Fields inherited from interface common.LocaleConstants
CLASS_LOCALE, CLASS_LOCALE_ENTRY, PARAM_LOCALE, REQUEST_LOCALE_ENTRY, REQUEST_LOCALE_ENTRY_PROVIDER, SESSION_LOCALE
 
Constructor Summary
BasketEntryIterationFilter(java.lang.Object keyProvider, java.lang.Object keyEntry)
          Constructor.
BasketEntryIterationFilter(java.lang.Object keyProvider, java.lang.Object keyEntry, java.lang.Object keyLocale)
          Create filter to iterate insetting basket entry information.
 
Method Summary
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataIterationFilter
add, afterLast, beforeFirst, getDataProvider, getIterator, onFirst, onInside, onLast, push
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
consume, flush
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.Filter
addCleanup, clear, connectTo, getConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasketEntryIterationFilter

public BasketEntryIterationFilter(java.lang.Object keyProvider,
                                  java.lang.Object keyEntry)
Constructor.

This is equivalent to BasketEntryIterationFilter(keyProvider, keyEntry, null).


BasketEntryIterationFilter

public BasketEntryIterationFilter(java.lang.Object keyProvider,
                                  java.lang.Object keyEntry,
                                  java.lang.Object keyLocale)
Create filter to iterate insetting basket entry information.
Method Detail

main

public static void main(java.lang.String[] args)
Invoke as stand-alone application.
USAGE:java pagemixer.filter.BasketEntryIterationFilter InputFilename

Please see description of pagemixer.filter about class path requirement to execute this class.


PageMixer demonstration