info.magnolia.link
Class RelativePathTransformer
java.lang.Object
info.magnolia.link.AbsolutePathTransformer
info.magnolia.link.RelativePathTransformer
- All Implemented Interfaces:
- LinkTransformer
public class RelativePathTransformer
- extends AbsolutePathTransformer
Transformer creating links relative to provided path.
- Version:
- $Id:$
- Author:
- had
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
absolutSourcePath
protected String absolutSourcePath
RelativePathTransformer
public RelativePathTransformer(Content sourcePage,
boolean useURI2RepositoryMapping,
boolean useI18N)
RelativePathTransformer
public RelativePathTransformer(String absoluteSourcePath,
boolean useURI2RepositoryMapping,
boolean useI18N)
transform
public String transform(Link target)
- Description copied from class:
AbsolutePathTransformer
- Transforms Link into desired output.
- Specified by:
transform
in interface LinkTransformer
- Overrides:
transform
in class AbsolutePathTransformer
- Parameters:
target
- Link to repository content be transformed.
- Returns:
- Transformed link.
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.