PageMixer demonstration

pagemixer.filter
Class BasketEntryIterationFilter.EntryNameL18NText

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
                          |
                          +--pagemixer.filter.BasketEntryIterationFilter.EntryNameL18NText
All Implemented Interfaces:
jp.ne.dti.lares.foozy.pagemixer.mixer.Consumer, LocaleConstants
Enclosing class:
BasketEntryIterationFilter

public static class BasketEntryIterationFilter.EntryNameL18NText
extends jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter.Inside
implements LocaleConstants

Filter to inset basket entry name text in token sequence.

This filter finds token sequence between '<span class="Shop-Basket-EntryName">' and '</span>', then insets localized entry name as HTML safe text inside it.


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.LocaleConstants
CLASS_LOCALE, CLASS_LOCALE_ENTRY, PARAM_LOCALE, REQUEST_LOCALE_ENTRY, REQUEST_LOCALE_ENTRY_PROVIDER, SESSION_LOCALE
 
Constructor Summary
BasketEntryIterationFilter.EntryNameL18NText(java.lang.Object keyEntry, java.lang.Object keyLocale)
           
 
Method Summary
protected  void insetData(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context, java.lang.Object data)
          Inset localized name of shopping basket entry.
 
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

BasketEntryIterationFilter.EntryNameL18NText

public BasketEntryIterationFilter.EntryNameL18NText(java.lang.Object keyEntry,
                                                    java.lang.Object keyLocale)
Method Detail

insetData

protected void insetData(jp.ne.dti.lares.foozy.pagemixer.mixer.ConsumerContext context,
                         java.lang.Object data)
Inset localized name of shopping basket entry.

This filter does:

  1. looks locale up by key specified at construction time
  2. gets localized name of basket entry,
  3. create new token having HTML-Safe-d text, then
  4. passes it to connected consumer.
Overrides:
insetData in class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceDataInsetFilter

PageMixer demonstration