Package org.mybatis.generator.internal
Class XmlFileMergerJaxp
java.lang.Object
org.mybatis.generator.internal.XmlFileMergerJaxp
This class handles the task of merging changes into an existing XML file.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetMergedSource(GeneratedXmlFile generatedXmlFile, File existingFile) static StringgetMergedSource(InputSource newFile, InputSource existingFile, String existingFileName) private static booleanisGeneratedNode(Node node) private static booleanisNewFormatNode(Node node) private static booleanisOldFormatNode(Node node) private static booleanisWhiteSpace(Node node) private static StringprettyPrint(Document document)
-
Constructor Details
-
XmlFileMergerJaxp
private XmlFileMergerJaxp()
-
-
Method Details
-
getMergedSource
public static String getMergedSource(GeneratedXmlFile generatedXmlFile, File existingFile) throws ShellException - Throws:
ShellException
-
getMergedSource
public static String getMergedSource(InputSource newFile, InputSource existingFile, String existingFileName) throws IOException, SAXException, ParserConfigurationException, ShellException -
prettyPrint
- Throws:
ShellException
-
isGeneratedNode
-
isOldFormatNode
-
isNewFormatNode
-
isWhiteSpace
-