org.cip4.jdflib.elementwalker
Class URLMapper

java.lang.Object
  extended by org.cip4.jdflib.elementwalker.ElementWalker
      extended by org.cip4.jdflib.elementwalker.BaseElementWalker
          extended by org.cip4.jdflib.elementwalker.URLMapper
All Implemented Interfaces:
IElementConverter

public class URLMapper
extends BaseElementWalker
implements IElementConverter

Author:
Rainer Prosi, Heidelberger Druckmaschinen walker that extracts all URLs and dumps them to a directory URLS are modified to reflect the new location

Nested Class Summary
 class URLMapper.WalkElement
          the URL walker
 class URLMapper.WalkURL
          the resource walker note the naming convention Walkxxx so that it is automagically instantiated by the super classes
 
Field Summary
 
Fields inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
log
 
Fields inherited from class org.cip4.jdflib.elementwalker.ElementWalker
theFactory
 
Constructor Summary
URLMapper(String baseIn, String baseOut)
           
 
Method Summary
 KElement convert(KElement e)
          generic converter that converts an element
protected  BaseWalkerFactory getFactory()
           
 
Methods inherited from class org.cip4.jdflib.elementwalker.BaseElementWalker
constructWalkers
 
Methods inherited from class org.cip4.jdflib.elementwalker.ElementWalker
toString, walkTree, walkTreeKidsFirst
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URLMapper

public URLMapper(String baseIn,
                 String baseOut)
Parameters:
baseIn - the input (to be modified) base url
baseOut - the output base url
Method Detail

getFactory

protected BaseWalkerFactory getFactory()
Overrides:
getFactory in class BaseElementWalker
Returns:
the factory for this worker

convert

public KElement convert(KElement e)
Description copied from interface: IElementConverter
generic converter that converts an element

Specified by:
convert in interface IElementConverter
Parameters:
e - the element to convert
Returns:
the converted element
See Also:
IElementConverter.convert(org.cip4.jdflib.core.KElement)


Copyright © 2013. All Rights Reserved.