![]() |
GrammarScope
4.0.0
|
Static Public Member Functions | |
| static void | save (final MutableRelationModel model, final String filePath) throws FileNotFoundException, IOException, TransformerException |
| static void | transformToFile (final Document document, final String filePath) throws IOException, FileNotFoundException, TransformerException |
| static void | transform (final Document document, final OutputStream outStream) throws IOException, TransformerException |
| static MutableRelationModel | load (final URL url) |
| static Document | modelToDomDocument (final MutableRelationModel model) |
| static MutableRelationModel | domDocumentToModel (final Document document) |
| static void | main (final String[] args) throws TransformerException, FileNotFoundException, IOException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException |
Private Member Functions | |
| MutableRelationModelTransformer () | |
Static Private Member Functions | |
| static Document | makeDomDocument (final URL url) |
| static DocumentBuilder | makeDomDocumentBuilder () throws ParserConfigurationException |
| static Element | getFirstElementByTagName (final Element element, final String tagName) |
Static Private Attributes | |
| static final boolean | validate = false |
Relation model transformer
|
private |
|
static |
Make relation model from DOM document
| document | DOM document |
|
staticprivate |
Get first element by tag name
| element | element to start from |
| tagName | tagname |
|
static |
Load relation model from URL
| url | source URL |
|
static |
Convert default model to file
| args | arg[0] file path |
| TransformerException | exception |
| FileNotFoundException | exception |
| IOException | exception |
| ClassNotFoundException | exception |
| NoSuchMethodException | exception |
| SecurityException | exception |
| InvocationTargetException | exception |
| IllegalAccessException | exception |
| IllegalArgumentException | exception |
|
staticprivate |
Make DOM document from URL
| url | source URL |
|
staticprivate |
Make document builder
| ParserConfigurationException | exception |
|
static |
Make DOM document from relation model
| model | relation model |
|
static |
Save relation model to file
| model | relation model |
| filePath | filepath |
| FileNotFoundException | exception |
| IOException | exception |
| TransformerException | exception |
|
static |
Transform document to XML output stream
| document | DOM document |
| outStream | output stream |
| IOException | exception |
| TransformerException | exception |
|
static |
Transform document to file
| document | DOM document |
| filePath | file path |
| IOException | exception |
| FileNotFoundException | exception |
| TransformerException | exception |
|
staticprivate |
Whether to perform XML validation
1.8.17