public class XMLWriter extends Object
Constructor and Description |
---|
XMLWriter()
Object used to generate a new XML DOM Document
|
Modifier and Type | Method and Description |
---|---|
Element |
createElement(String s) |
Document |
getDocument()
Returns a new XML DOM Document
|
static Document |
ItemListToDOM(ArrayList items) |
static Document |
ItemListToDOM(ArrayList items,
boolean limited) |
static Document |
ItemToDOM(XFTItem item,
boolean allowSchemaLocation,
boolean limited)
Method used to translate an XFTItem to an XML DOM Document.
|
static Document |
ItemToDOM(XFTItem item,
boolean allowSchemaLocation,
String location,
boolean limited)
Method used to translate an XFTItem to an XML DOM Document.
|
static int |
StoreXFTItemListToXMLFile(ArrayList al,
String destinationDir,
boolean limited,
boolean pp)
Translates the XFTItems in the ArrayList into a XML DOM Documents and writes them to files
in the destinationDir using the XFTItem's proper name and its pk value to determine the
file name.
|
static String |
ValueParser(Object o,
String type)
Formats data types to XML output string
|
static String |
ValueParser(Object o,
String type,
String appendRootPath,
String relativizePath)
Formats data types to XML output string
|
static String |
ValueParser(Object o,
XMLWrapperField field)
Formats data types to XML output string
|
static String |
ValueParser(Object o,
XMLWrapperField field,
String appendRootPath,
String relativizePath)
Formats data types to XML output string
|
static Document |
XFTItemListToDOM(List list)
Creates a XML DOM Document with a root element of type <List> and the items
as a sub nodes.
|
static Document |
XFTItemListToDOM(List list,
boolean limited)
Creates a XML DOM Document with a root element of type <List> and the items
as a sub nodes.
|
public Document getDocument()
public static int StoreXFTItemListToXMLFile(ArrayList al, String destinationDir, boolean limited, boolean pp) throws XFTInitException, ElementNotFoundException, Exception
al
- destinationDir
- extendItems
- XFTInitException
ElementNotFoundException
Exception
public static Document ItemToDOM(XFTItem item, boolean allowSchemaLocation, boolean limited) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
item
- XFTInitException
ElementNotFoundException
FieldNotFoundException
public static Document ItemToDOM(XFTItem item, boolean allowSchemaLocation, String location, boolean limited) throws XFTInitException, ElementNotFoundException, FieldNotFoundException
item
- XFTInitException
ElementNotFoundException
FieldNotFoundException
public static String ValueParser(Object o, String type)
o
- public static String ValueParser(Object o, String type, String appendRootPath, String relativizePath)
o
- public static String ValueParser(Object o, XMLWrapperField field)
o
- public static String ValueParser(Object o, XMLWrapperField field, String appendRootPath, String relativizePath)
o
- public static Document XFTItemListToDOM(List list, boolean limited)
list
- Copyright © 2015 Neuroinformatics Research Group. All rights reserved.