public class ChangeRecorderXML extends Object implements ChangeRecorder
| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGES_NAMESPACE
The XML namespace used for serialized changes.
|
| Modifier and Type | Method and Description |
|---|---|
static ChangeRecorder |
create()
Create a new change recorder that serializes to XML.
|
void |
recordUpdate(String kind,
String groupId,
String artifactId,
String oldVersion,
String newVersion)
Record that a dependency was updated.
|
void |
serialize(OutputStream outputStream)
Serialize the current set of changes to the given output stream.
|
public static final String CHANGES_NAMESPACE
public static ChangeRecorder create()
public final void recordUpdate(String kind, String groupId, String artifactId, String oldVersion, String newVersion)
ChangeRecorderrecordUpdate in interface ChangeRecorderkind - The kind of version changegroupId - The dependency group IDartifactId - The dependency artifact IDoldVersion - The old version of the dependencynewVersion - The new version of the dependencypublic final void serialize(OutputStream outputStream) throws IOException
ChangeRecorderserialize in interface ChangeRecorderoutputStream - The output streamIOException - On serialization and/or I/O errorsCopyright © 2008–2022 MojoHaus. All rights reserved.