Class SessionImpl
java.lang.Object
gg.nils.semanticrelease.maven.plugin.session.impl.SessionImpl
- All Implemented Interfaces:
Session
-
Constructor Summary
ConstructorsConstructorDescriptionSessionImpl(String version, File multiModuleDirectory) Standard constructor using mandatory fields. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProject(GAV project) static SessionserializeFrom(String content) De-serializes the given string as aSessionImpl.static StringserializeTo(Session session) Serializes as a String the given configuration object.
-
Constructor Details
-
SessionImpl
Standard constructor using mandatory fields. The class does not use final attributes dues to its jaxb nature that requires an empty constructor.- Parameters:
version- the final versionmultiModuleDirectory- the base maven directory
-
-
Method Details
-
serializeTo
Serializes as a String the given configuration object.- Parameters:
session- the object to serialize- Returns:
- a non null String representation of the given object serialized
- Throws:
IOException- if the serialized form cannot be writtenException- See Also:
-
serializeFrom
De-serializes the given string as aSessionImpl.- Parameters:
content- the string to de-serialize- Returns:
- a non null configuration object
- Throws:
Exception- if the given string could not be interpreted by simplexml
-
getVersion
- Specified by:
getVersionin interfaceSession
-
getMultiModuleDirectory
- Specified by:
getMultiModuleDirectoryin interfaceSession
-
addProject
- Specified by:
addProjectin interfaceSession
-
getProjects
- Specified by:
getProjectsin interfaceSession
-