public class DoctypeToFacetTranslator extends Object implements DocumentTransformer
Modifier and Type | Field and Description |
---|---|
protected String |
docType |
protected String |
facet |
protected String |
newDocType |
Constructor and Description |
---|
DoctypeToFacetTranslator(String docType,
String newDocType,
String facet) |
Modifier and Type | Method and Description |
---|---|
boolean |
transform(ExportedDocument xdoc)
Transforms the given document and returns true to pass to the next transformer or false to exit from the
transformation chain.
|
protected final String newDocType
public DoctypeToFacetTranslator(String docType, String newDocType, String facet)
public boolean transform(ExportedDocument xdoc) throws IOException
DocumentTransformer
transform
in interface DocumentTransformer
xdoc
- the document to transformIOException
Copyright © 2018 Nuxeo. All rights reserved.