public class DefaultCDMFrSyncTransformer extends Object implements CDMFrSyncTransformer, Serviceable, Configurable
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultCDMFrSyncTransformer.CDMFrPrefixResolver
XML prefix resolver which declares CDMFr namespaces.
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<Pattern> |
_applications
Set of applications supported by the transformer.
|
protected DOMParser |
_domParser
The DOM parser.
|
protected PrefixResolver |
_prefixResolver
The prefix resolver.
|
protected SourceResolver |
_sourceResolver
Ametys object resolver.
|
protected XPathProcessor |
_xPathProcessor
The XPath processor.
|
protected String |
_xslFile
The XSL file to transform the document.
|
static Map<String,String> |
DEFAULT_NAMESPACES
The default XML namespace prefixes.
|
| Constructor and Description |
|---|
DefaultCDMFrSyncTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
protected void |
configureNamespaces(Configuration configuration)
Configure the namespace to use.
|
void |
service(ServiceManager manager) |
boolean |
supports(Document document)
Analyze the document and tell if it's support or not by the current transformer.
|
Document |
transform(Document document,
Map<String,Object> parameters)
Transform the document to a generic document designed for Ametys importers and synchronizers.
|
public static final Map<String,String> DEFAULT_NAMESPACES
protected DOMParser _domParser
protected SourceResolver _sourceResolver
protected XPathProcessor _xPathProcessor
protected Set<Pattern> _applications
protected PrefixResolver _prefixResolver
public DefaultCDMFrSyncTransformer()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionprotected void configureNamespaces(Configuration configuration)
configuration - the namespaces configuration, can be null.public boolean supports(Document document)
CDMFrSyncTransformersupports in interface CDMFrSyncTransformerdocument - The document to analyze.public Document transform(Document document, Map<String,Object> parameters) throws IOException, SAXException, ProcessingException
CDMFrSyncTransformertransform in interface CDMFrSyncTransformerdocument - The document to transform.parameters - additional parameters for transformationIOException - if an error occurs.SAXException - if an error occurs.ProcessingException - if an error occurs.