public class ITUtil extends Object
| Constructor and Description |
|---|
ITUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkVisitedNodes()
Traverses the complete DOM and checks that every node is retrieved with
getNode(java.lang.String). |
void |
compileClasses(String folder,
String resultFileName,
String[] options)
Method to compile all classes in the given folder.
|
Node |
getAttribute(String name,
Node node)
Returns the given attribute of the given element.
|
Node |
getNode(String path)
Returns the node with the given XPath.
|
Element |
getRootElement()
Returns the root element of the document.
|
public void compileClasses(String folder, String resultFileName, String[] options) throws ParserConfigurationException, SAXException, IOException
target/jpa-classes/. After compilation the resulting XML file will be read.folder - the folder that contains the JPA classes to process.resultFileName - the resulting file of the generator. Must match the option of the
annotation processor.options - the options for the compiling (primary the options for the annotation
processor).ParserConfigurationException - when the parser cannot be created.SAXException - when the parsing fails.IOException - when the IO fails.public void checkVisitedNodes()
getNode(java.lang.String). The
check is done with Assert.public Element getRootElement()
public Node getNode(String path) throws XPathExpressionException
path - the XPath of the node to retrieve.XPathExpressionException - if the XPath expression is invalid.Copyright © 2025. All rights reserved.