GrammarScope  4.0.0
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
grammarscope.mutable.MutableRelationModelTransformer Class Reference

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
 

Detailed Description

Relation model transformer

Author
Bernard Bou

Constructor & Destructor Documentation

◆ MutableRelationModelTransformer()

grammarscope.mutable.MutableRelationModelTransformer.MutableRelationModelTransformer ( )
private

Member Function Documentation

◆ domDocumentToModel()

static MutableRelationModel grammarscope.mutable.MutableRelationModelTransformer.domDocumentToModel ( final Document  document)
static

Make relation model from DOM document

Parameters
documentDOM document
Returns
relation model

◆ getFirstElementByTagName()

static Element grammarscope.mutable.MutableRelationModelTransformer.getFirstElementByTagName ( final Element  element,
final String  tagName 
)
staticprivate

Get first element by tag name

Parameters
elementelement to start from
tagNametagname
Returns
child element having tagname

◆ load()

static MutableRelationModel grammarscope.mutable.MutableRelationModelTransformer.load ( final URL  url)
static

Load relation model from URL

Parameters
urlsource URL
Returns
relation model

◆ main()

static void grammarscope.mutable.MutableRelationModelTransformer.main ( final String[]  args) throws TransformerException, FileNotFoundException, IOException, ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
static

Convert default model to file

Parameters
argsarg[0] file path
Exceptions
TransformerExceptionexception
FileNotFoundExceptionexception
IOExceptionexception
ClassNotFoundExceptionexception
NoSuchMethodExceptionexception
SecurityExceptionexception
InvocationTargetExceptionexception
IllegalAccessExceptionexception
IllegalArgumentExceptionexception

◆ makeDomDocument()

static Document grammarscope.mutable.MutableRelationModelTransformer.makeDomDocument ( final URL  url)
staticprivate

Make DOM document from URL

Parameters
urlsource URL
Returns
DOM document

◆ makeDomDocumentBuilder()

static DocumentBuilder grammarscope.mutable.MutableRelationModelTransformer.makeDomDocumentBuilder ( ) throws ParserConfigurationException
staticprivate

Make document builder

Returns
document builder
Exceptions
ParserConfigurationExceptionexception

◆ modelToDomDocument()

static Document grammarscope.mutable.MutableRelationModelTransformer.modelToDomDocument ( final MutableRelationModel  model)
static

Make DOM document from relation model

Parameters
modelrelation model
Returns
DOM document

◆ save()

static void grammarscope.mutable.MutableRelationModelTransformer.save ( final MutableRelationModel  model,
final String  filePath 
) throws FileNotFoundException, IOException, TransformerException
static

Save relation model to file

Parameters
modelrelation model
filePathfilepath
Exceptions
FileNotFoundExceptionexception
IOExceptionexception
TransformerExceptionexception

◆ transform()

static void grammarscope.mutable.MutableRelationModelTransformer.transform ( final Document  document,
final OutputStream  outStream 
) throws IOException, TransformerException
static

Transform document to XML output stream

Parameters
documentDOM document
outStreamoutput stream
Exceptions
IOExceptionexception
TransformerExceptionexception

◆ transformToFile()

static void grammarscope.mutable.MutableRelationModelTransformer.transformToFile ( final Document  document,
final String  filePath 
) throws IOException, FileNotFoundException, TransformerException
static

Transform document to file

Parameters
documentDOM document
filePathfile path
Exceptions
IOExceptionexception
FileNotFoundExceptionexception
TransformerExceptionexception

Member Data Documentation

◆ validate

final boolean grammarscope.mutable.MutableRelationModelTransformer.validate = false
staticprivate

Whether to perform XML validation


The documentation for this class was generated from the following file: