Package repast.simphony.integration
Class DataFileWriter
java.lang.Object
repast.simphony.integration.DataFileWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRoot()
Retrieves the root object.Extracts a value from a Node and returns it.void
mark()
void
popMark()
void
reset()
selectNode
(Object curContext, String path) Selects a node using the specified context as the current location.selectNode
(String path) Selects a node from using the current location (or root if no such thing exists) using the specified path.List<?>
selectNodes
(Object curContext, String path) Selects multiple nodes using the query based at the specified context.List<?>
selectNodes
(String path) Selects multiple nodes using the query.void
setDescriptorFileName
(String descriptorFileName) void
setDestFileName
(String fileName) void
setNewLineConverter
(EscapeConverter newLineConverter) void
setWrittenObject
(Queryable queryable) void
write()
void
writeValueDelimiter
(Object data, String delimiter) void
writeValuePattern
(Object data, String type, String pattern)
-
Constructor Details
-
DataFileWriter
public DataFileWriter() -
DataFileWriter
-
DataFileWriter
-
-
Method Details
-
write
- Specified by:
write
in interfaceWriter
- Throws:
org.jdom.JDOMException
IOException
-
setNewLineConverter
-
getNewLineConverter
-
writeValueDelimiter
-
writeValuePattern
-
setDestFileName
-
getDestFileName
-
setDescriptorFileName
-
getDescriptorFileName
-
mark
- Throws:
IOException
-
popMark
public void popMark() -
reset
- Throws:
IOException
-
selectNode
Description copied from interface:Queryable
Selects a node from using the current location (or root if no such thing exists) using the specified path. If multiple nodes are returned with the query this will be the first one.- Specified by:
selectNode
in interfaceQueryable
- Parameters:
path
- the XPath query- Returns:
- the selected node (can be null if the query failed)
-
selectNode
Description copied from interface:Queryable
Selects a node using the specified context as the current location. If multiple nodes are returned with the query this will be the first one.- Specified by:
selectNode
in interfaceQueryable
- Parameters:
curContext
- the context of the querypath
- the query- Returns:
- the value of the query
- See Also:
-
selectNodes
Description copied from interface:Queryable
Selects multiple nodes using the query.- Specified by:
selectNodes
in interfaceQueryable
- Parameters:
path
- the query- Returns:
- the result
-
selectNodes
Description copied from interface:Queryable
Selects multiple nodes using the query based at the specified context.- Specified by:
selectNodes
in interfaceQueryable
path
- the query- Returns:
- the result
-
getRoot
Description copied from interface:Queryable
Retrieves the root object. -
getValue
Description copied from interface:Queryable
Extracts a value from a Node and returns it. What this means is implementation dependent. -
setWrittenObject
- Specified by:
setWrittenObject
in interfaceWriter
-