Package com.powsybl.psse.model.io
Class Context
- java.lang.Object
-
- com.powsybl.psse.model.io.Context
-
public class Context extends Object
- Author:
- Luma Zamarreño
, José Antonio Marqués
-
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detectDelimiter(String record)
com.univocity.parsers.csv.CsvParserSettings
getCsvParserSettings()
int
getCurrentRecordGroupMaxNumFields()
char
getDelimiter()
String[]
getFieldNames(RecordGroupIdentification recordGroup)
FileFormat
getFileFormat()
com.fasterxml.jackson.core.JsonGenerator
getJsonGenerator()
com.fasterxml.jackson.databind.JsonNode
getNetworkNode()
PsseVersion
getVersion()
void
resetCurrentRecordGroup()
Context
setCurrentRecordNumFields(int numFields)
Context
setDelimiter(char delimiter)
Context
setFieldNames(RecordGroupIdentification recordGroup, String[] fieldNames)
Context
setFileFormat(FileFormat fileFormat)
Context
setJsonGenerator(com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
Context
setNetworkNode(com.fasterxml.jackson.databind.JsonNode networkNode)
Context
setVersion(PsseVersion version)
-
-
-
Method Detail
-
getVersion
public PsseVersion getVersion()
-
setVersion
public Context setVersion(PsseVersion version)
-
getFileFormat
public FileFormat getFileFormat()
-
setFileFormat
public Context setFileFormat(FileFormat fileFormat)
-
getDelimiter
public char getDelimiter()
-
setDelimiter
public Context setDelimiter(char delimiter)
-
detectDelimiter
public void detectDelimiter(String record)
-
setFieldNames
public Context setFieldNames(RecordGroupIdentification recordGroup, String[] fieldNames)
-
getFieldNames
public String[] getFieldNames(RecordGroupIdentification recordGroup)
-
getCsvParserSettings
public com.univocity.parsers.csv.CsvParserSettings getCsvParserSettings()
-
resetCurrentRecordGroup
public void resetCurrentRecordGroup()
-
getCurrentRecordGroupMaxNumFields
public int getCurrentRecordGroupMaxNumFields()
-
setCurrentRecordNumFields
public Context setCurrentRecordNumFields(int numFields)
-
getJsonGenerator
public com.fasterxml.jackson.core.JsonGenerator getJsonGenerator()
-
setJsonGenerator
public Context setJsonGenerator(com.fasterxml.jackson.core.JsonGenerator jsonGenerator)
-
getNetworkNode
public com.fasterxml.jackson.databind.JsonNode getNetworkNode()
-
setNetworkNode
public Context setNetworkNode(com.fasterxml.jackson.databind.JsonNode networkNode)
-
-