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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendChangelog(Changelog changelog) Appends the contents of the given changelog to this document.booleancontainsChangeset(String author, String id) Investigates the xml and returnstrue, if a changeset tag is found with matchingidandauthorattribute.Returns the xml document.Returns an input stream to the serialized xml of the document.getRoot()protected booleanparseDocument(URL url) voidwriteXml(OutputStream out) Writes the contents of the document using the specified stream.voidWrites 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 matchingidandauthorattribute. -
getInputStream
Returns an input stream to the serialized xml of the document.
-