Package repast.simphony.integration
Class DataFileWriter
java.lang.Object
repast.simphony.integration.DataFileWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRoot()Retrieves the root object.Extracts a value from a Node and returns it.voidmark()voidpopMark()voidreset()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.voidsetDescriptorFileName(String descriptorFileName) voidsetDestFileName(String fileName) voidsetNewLineConverter(EscapeConverter newLineConverter) voidsetWrittenObject(Queryable queryable) voidwrite()voidwriteValueDelimiter(Object data, String delimiter) voidwriteValuePattern(Object data, String type, String pattern)
-
Constructor Details
-
DataFileWriter
public DataFileWriter() -
DataFileWriter
-
DataFileWriter
-
-
Method Details
-
write
- Specified by:
writein interfaceWriter- Throws:
org.jdom.JDOMExceptionIOException
-
setNewLineConverter
-
getNewLineConverter
-
writeValueDelimiter
-
writeValuePattern
-
setDestFileName
-
getDestFileName
-
setDescriptorFileName
-
getDescriptorFileName
-
mark
- Throws:
IOException
-
popMark
public void popMark() -
reset
- Throws:
IOException
-
selectNode
Description copied from interface:QueryableSelects 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:
selectNodein interfaceQueryable- Parameters:
path- the XPath query- Returns:
- the selected node (can be null if the query failed)
-
selectNode
Description copied from interface:QueryableSelects 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:
selectNodein interfaceQueryable- Parameters:
curContext- the context of the querypath- the query- Returns:
- the value of the query
- See Also:
-
selectNodes
Description copied from interface:QueryableSelects multiple nodes using the query.- Specified by:
selectNodesin interfaceQueryable- Parameters:
path- the query- Returns:
- the result
-
selectNodes
Description copied from interface:QueryableSelects multiple nodes using the query based at the specified context.- Specified by:
selectNodesin interfaceQueryablepath- the query- Returns:
- the result
-
getRoot
Description copied from interface:QueryableRetrieves the root object. -
getValue
Description copied from interface:QueryableExtracts a value from a Node and returns it. What this means is implementation dependent. -
setWrittenObject
- Specified by:
setWrittenObjectin interfaceWriter
-