Package ch.tocco.nice2.dbrefactoring.api
Class Changelog
java.lang.Object
ch.tocco.nice2.dbrefactoring.api.Changelog
Class for databaseChangeLog documents providing the document and methods to serialize into xml.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendChangelog
(Changelog changelog) Appends the contents of the given changelog to this document.boolean
containsChangeset
(String author, String id) Investigates the xml and returnstrue
, if a changeset tag is found with matchingid
andauthor
attribute.Returns the xml document.Returns an input stream to the serialized xml of the document.getRoot()
protected boolean
parseDocument
(URL url) void
writeXml
(OutputStream out) Writes the contents of the document using the specified stream.void
Writes the contents of the document using the specified writer.
-
Field Details
-
XML_NS
- See Also:
-
XML_NS_LOCATION
- See Also:
-
-
Constructor Details
-
Changelog
public Changelog() -
Changelog
-
Changelog
-
-
Method Details
-
parseDocument
-
parseDocument
- Throws:
DbRefactoringException
-
getDocument
Returns the xml document. -
appendChangelog
Appends the contents of the given changelog to this document. -
getRoot
-
writeXml
Writes the contents of the document using the specified writer.- Throws:
DbRefactoringException
-
writeXml
Writes the contents of the document using the specified stream.- Throws:
DbRefactoringException
-
isPrettyPrint
protected boolean isPrettyPrint() -
containsChangeset
Investigates the xml and returnstrue
, if a changeset tag is found with matchingid
andauthor
attribute. -
getInputStream
Returns an input stream to the serialized xml of the document.
-