PageMixer demonstration

pagemixer.filter
Class BasketTotalTextInsetFilter

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.SequenceDataInsetFilter
                    |
                    +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside
                          |
                          +--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside
                                |
                                +--pagemixer.filter.BasketTotalTextInsetFilter
All Implemented Interfaces:
jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer, ShopConstants

public class BasketTotalTextInsetFilter
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside
implements ShopConstants

Filter to inset total price of entries in shopping basket.

This filter finds token sequence between '<span class="Shop-Basket-Total">' and '</span>', then insets total price of entries in shopping basket as HTML safe text inside it.

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


Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter
jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextWhole, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside, jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Whole
 
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
 
Constructor Summary
BasketTotalTextInsetFilter(java.lang.Object keyProvider)
          Create filter to inset total price of entries in shopping basket.
 
Method Summary
protected  java.lang.String getText(java.lang.Object data)
           
static void main(java.lang.String[] args)
          Invoke as stand-alone application.
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside
insetData
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside
onFirst, onLast
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter
getData
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceEditFilter
afterLast, beforeFirst, consume, flush, onInside
 
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

BasketTotalTextInsetFilter

public BasketTotalTextInsetFilter(java.lang.Object keyProvider)
Create filter to inset total price of entries in shopping basket.
Method Detail

getText

protected java.lang.String getText(java.lang.Object data)
Overrides:
getText in class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.HTMLSafeTextInside

main

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

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


PageMixer demonstration