org.writersforge.catalan.templates.generic
Class PaddingOp

java.lang.Object
  extended byorg.writersforge.catalan.templates.generic.GenericOp
      extended byorg.writersforge.catalan.templates.generic.ContentOp
          extended byorg.writersforge.catalan.templates.generic.PaddingOp

public class PaddingOp
extends ContentOp

Author:
jsheets

Constructor Summary
PaddingOp(org.writersforge.bellows.Datum op, StyleMap styleMap)
          Creates a new instance of PaddingOp.
PaddingOp(org.writersforge.bellows.Datum op, StyleMap styleMap, StyleChain chain)
          Creates a new instance of PaddingOp with an optional StyleChain fallback.
 
Method Summary
 java.util.List resolve(org.writersforge.bellows.Datum xmlNode)
          Runs a Datum XML node through the op and returns a List of LayoutArea objects.
 
Methods inherited from class org.writersforge.catalan.templates.generic.GenericOp
createOp, createOp, getChain, getDatum, getDatumProperty, getOp, getOpType, getParameter, getStyleMap, resolveParameter, resolvePath, runQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaddingOp

public PaddingOp(org.writersforge.bellows.Datum op,
                 StyleMap styleMap)
Creates a new instance of PaddingOp.

Parameters:
op - the XML template op to wrap
styleMap - the StyleMap to lookup named styles in

PaddingOp

public PaddingOp(org.writersforge.bellows.Datum op,
                 StyleMap styleMap,
                 StyleChain chain)
Creates a new instance of PaddingOp with an optional StyleChain fallback. The StyleChain can be null.

Parameters:
op - the XML template op to wrap
styleMap - the StyleMap to lookup named styles in
chain - optional fallback StyleChain
Method Detail

resolve

public java.util.List resolve(org.writersforge.bellows.Datum xmlNode)
Runs a Datum XML node through the op and returns a List of LayoutArea objects. The caller may pass in a fallback style

Specified by:
resolve in class GenericOp
Parameters:
xmlNode - the input data node to run through the op
Returns:
a List of LayoutArea objects.