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
Method Summary |
java.lang.String |
transform(Link target)
Transforms Link into desired output. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
absolutSourcePath
protected java.lang.String absolutSourcePath
RelativePathTransformer
public RelativePathTransformer(Content sourcePage,
boolean useURI2RepositoryMapping,
boolean useI18N)
RelativePathTransformer
public RelativePathTransformer(java.lang.String absoluteSourcePath,
boolean useURI2RepositoryMapping,
boolean useI18N)
transform
public java.lang.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-2011 Magnolia International Ltd.. All Rights Reserved.