public static class GDLHandler.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
GDLHandler |
buildFromFile(String fileName)
Initializes GDL Handler from given file.
|
GDLHandler |
buildFromStream(InputStream stream)
Initializes GDL Handler from given input stream.
|
GDLHandler |
buildFromString(String asciiString)
Initialize GDL Handler from given ASCII String.
|
GDLHandler.Builder |
setDefaultEdgeLabel(String edgeLabel)
Default edge label is used if none is set in the GDL script.
|
GDLHandler.Builder |
setDefaultGraphLabel(String graphLabel)
Default graph label is used if none is set in the GDL script.
|
GDLHandler.Builder |
setDefaultVertexLabel(String vertexLabel)
Default vertex label is used if none is set in the GDL script.
|
GDLHandler.Builder |
setErrorStrategy(org.antlr.v4.runtime.ANTLRErrorStrategy errorStrategy)
Set the error handler strategy for ANTLR.
|
public GDLHandler.Builder setDefaultGraphLabel(String graphLabel)
graphLabel - graph label (must not be null).public GDLHandler.Builder setDefaultVertexLabel(String vertexLabel)
vertexLabel - vertex label (must not be null).public GDLHandler.Builder setDefaultEdgeLabel(String edgeLabel)
edgeLabel - edge label (must not be null).public GDLHandler.Builder setErrorStrategy(org.antlr.v4.runtime.ANTLRErrorStrategy errorStrategy)
DefaultErrorStrategy is used.errorStrategy - ANTLR error strategypublic GDLHandler buildFromString(String asciiString)
asciiString - GDL string (must not be null).public GDLHandler buildFromStream(InputStream stream) throws IOException
stream - InputStream (must not be null).IOExceptionpublic GDLHandler buildFromFile(String fileName) throws IOException
fileName - GDL file (must not be null).IOExceptionCopyright © 2017. All rights reserved.