| Constructor and Description |
|---|
SessionImpl(String version,
File multiModuleDirectory)
Standard constructor using mandatory fields.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProject(GAV project) |
File |
getMultiModuleDirectory() |
Set<GAV> |
getProjects() |
String |
getVersion() |
static Session |
serializeFrom(String content)
De-serializes the given string as a
SessionImpl. |
static String |
serializeTo(Session session)
Serializes as a String the given configuration object.
|
public SessionImpl(String version, File multiModuleDirectory)
version - the final versionmultiModuleDirectory - the base maven directorypublic static String serializeTo(Session session) throws Exception
session - the object to serializeIOException - if the serialized form cannot be writtenExceptionserializeFrom(String)public static Session serializeFrom(String content) throws Exception
SessionImpl.content - the string to de-serializeException - if the given string could not be interpreted by simplexmlpublic String getVersion()
getVersion in interface Sessionpublic File getMultiModuleDirectory()
getMultiModuleDirectory in interface Sessionpublic void addProject(GAV project)
addProject in interface Sessionpublic Set<GAV> getProjects()
getProjects in interface SessionCopyright © 2021. All rights reserved.