public class RelativePathTransformer extends AbsolutePathTransformer
Modifier and Type | Field and Description |
---|---|
protected String |
absolutSourcePath |
Constructor and Description |
---|
RelativePathTransformer() |
RelativePathTransformer(javax.jcr.Node sourcePage,
boolean useURI2RepositoryMapping,
boolean useI18N) |
RelativePathTransformer(String absoluteSourcePath,
boolean useURI2RepositoryMapping,
boolean useI18N) |
Modifier and Type | Method and Description |
---|---|
void |
setAbsolutSourcePath(javax.jcr.Node sourceNode) |
void |
setAbsolutSourcePath(String absolutSourcePath) |
String |
transform(Link target)
Transforms Link into desired output.
|
getURI2RepositoryManager, getURISuffix, isAddContextPath, isUseI18N, isUseURI2RepositoryMapping, prefixLink, setAddContextPath, setUseI18N, setUseURI2RepositoryMapping
protected String absolutSourcePath
public RelativePathTransformer()
public RelativePathTransformer(javax.jcr.Node sourcePage, boolean useURI2RepositoryMapping, boolean useI18N)
public RelativePathTransformer(String absoluteSourcePath, boolean useURI2RepositoryMapping, boolean useI18N)
public void setAbsolutSourcePath(javax.jcr.Node sourceNode)
public void setAbsolutSourcePath(String absolutSourcePath)
public String transform(Link target)
AbsolutePathTransformer
transform
in interface LinkTransformer
transform
in class AbsolutePathTransformer
target
- Link to repository content be transformed.Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.