public class XMLImporterServiceImpl extends Object
Modifier and Type | Field and Description |
---|---|
protected Boolean |
deferSave |
protected Map<String,List<String>> |
deletedAttributes |
protected Stack<DocumentModel> |
docsStack |
protected Map<org.dom4j.Element,DocumentModel> |
elToDoc |
static org.apache.commons.logging.Log |
log |
protected Map<String,Object> |
mvelCtx |
protected ParserConfigRegistry |
registry |
protected DocumentModel |
rootDoc |
protected CoreSession |
session |
protected File |
workingDirectory |
static String |
XML_IMPORTER_INITIALIZATION |
Constructor and Description |
---|
XMLImporterServiceImpl(DocumentModel rootDoc,
ParserConfigRegistry registry) |
XMLImporterServiceImpl(DocumentModel rootDoc,
ParserConfigRegistry registry,
Map<String,Object> mvelContext,
boolean deferSave) |
Modifier and Type | Method and Description |
---|---|
protected void |
createNewDocument(org.dom4j.Element el,
DocConfigDescriptor conf) |
protected List<AttributeConfigDescriptor> |
getAttributConfigs(org.dom4j.Element el) |
protected DocConfigDescriptor |
getDocCreationConfig(org.dom4j.Element el) |
protected Map<String,Object> |
getMVELContext(org.dom4j.Element el) |
protected ParserConfigRegistry |
getRegistry() |
List<DocumentModel> |
parse(org.dom4j.Document doc) |
List<DocumentModel> |
parse(File file) |
List<DocumentModel> |
parse(InputStream is) |
protected void |
process(org.dom4j.Element el) |
protected void |
processDocAttributes(DocumentModel doc,
org.dom4j.Element el,
AttributeConfigDescriptor conf) |
protected Object |
resolve(org.dom4j.Element el,
String xpr) |
protected Object |
resolveAndEvaluateXmlNode(org.dom4j.Element el,
String xpr) |
protected Blob |
resolveBlob(org.dom4j.Element el,
AttributeConfigDescriptor conf) |
protected Object |
resolveComplex(org.dom4j.Element el,
AttributeConfigDescriptor conf) |
protected Object |
resolveMVEL(org.dom4j.Element el,
String xpr) |
protected String |
resolveName(org.dom4j.Element el,
String xpr) |
protected String |
resolvePath(org.dom4j.Element el,
String xpr) |
protected Object |
resolveXP(org.dom4j.Element el,
String xpr) |
public static final org.apache.commons.logging.Log log
public static final String XML_IMPORTER_INITIALIZATION
protected CoreSession session
protected DocumentModel rootDoc
protected Stack<DocumentModel> docsStack
protected Map<String,List<String>> deletedAttributes
protected Map<org.dom4j.Element,DocumentModel> elToDoc
protected ParserConfigRegistry registry
protected File workingDirectory
public XMLImporterServiceImpl(DocumentModel rootDoc, ParserConfigRegistry registry)
public XMLImporterServiceImpl(DocumentModel rootDoc, ParserConfigRegistry registry, Map<String,Object> mvelContext, boolean deferSave)
protected ParserConfigRegistry getRegistry()
protected DocConfigDescriptor getDocCreationConfig(org.dom4j.Element el)
protected List<AttributeConfigDescriptor> getAttributConfigs(org.dom4j.Element el)
public List<DocumentModel> parse(InputStream is) throws IOException
IOException
public List<DocumentModel> parse(File file) throws IOException
IOException
public List<DocumentModel> parse(org.dom4j.Document doc)
protected Object resolveComplex(org.dom4j.Element el, AttributeConfigDescriptor conf)
protected Blob resolveBlob(org.dom4j.Element el, AttributeConfigDescriptor conf)
protected void processDocAttributes(DocumentModel doc, org.dom4j.Element el, AttributeConfigDescriptor conf)
protected Map<String,Object> getMVELContext(org.dom4j.Element el)
protected Object resolveMVEL(org.dom4j.Element el, String xpr)
protected String resolvePath(org.dom4j.Element el, String xpr)
protected String resolveName(org.dom4j.Element el, String xpr)
protected Object resolveAndEvaluateXmlNode(org.dom4j.Element el, String xpr)
protected void createNewDocument(org.dom4j.Element el, DocConfigDescriptor conf)
protected void process(org.dom4j.Element el)
Copyright © 2015 Nuxeo SA. All rights reserved.