class ArchiveContents
extends java.lang.Object
This is the class that XStream serializes.
Modifier and Type | Class and Description |
---|---|
static class |
ArchiveContents.ArchivedAttribute
The class used to represent an attribute in the archive.
|
(package private) static class |
ArchiveContents.ArchivedComponent
Represents the data used to store components in the archive.
|
(package private) static class |
ArchiveContents.ArchivedCoupling
Class used to represent a coupling in the archive.
|
(package private) static class |
ArchiveContents.ArchivedUpdateAction
A persistable form of update action that can be used to recreate the
action.
|
Constructor and Description |
---|
ArchiveContents(Workspace workspace,
WorkspaceComponentSerializer serializer)
The component serializer for this archive.
|
Modifier and Type | Method and Description |
---|---|
(package private) ArchiveContents.ArchivedComponent |
addComponent(WorkspaceComponent workspaceComponent)
Adds a new workspace Component to the archive.
|
(package private) ArchiveContents.ArchivedCoupling |
addCoupling(Coupling<?> coupling)
Adds a coupling to the archive.
|
(package private) void |
addUpdateAction(UpdateAction action)
Adds an update action the archive.
|
(package private) UpdateAction |
createUpdateAction(Workspace workspace,
WorkspaceComponentDeserializer componentDeserializer,
ArchiveContents.ArchivedUpdateAction archivedAction)
Create a "real" update action from an archived update action.
|
java.util.List<ArchiveContents.ArchivedUpdateAction> |
getArchivedActions() |
(package private) ArchiveContents.ArchivedComponent |
getArchivedComponent(java.lang.String uri)
Returns the component associated with the uri.
|
(package private) java.util.List<? extends ArchiveContents.ArchivedComponent> |
getArchivedComponents()
Returns an immutable list of the components in this archive.
|
(package private) java.util.List<? extends ArchiveContents.ArchivedCoupling> |
getArchivedCouplings()
Returns an immutable list of the couplings in this archive.
|
Workspace |
getWorkspaceParameters() |
(package private) void |
toXml(java.io.OutputStream stream)
Writes this instance to XML.
|
(package private) static com.thoughtworks.xstream.XStream |
xstream()
Returns the XStream instance used to serialize and deserialize instances
of this class.
|
ArchiveContents(Workspace workspace, WorkspaceComponentSerializer serializer)
workspace
- references to parent workspaceserializer
- The component serializer for this archive.ArchiveContents.ArchivedComponent addComponent(WorkspaceComponent workspaceComponent)
workspaceComponent
- The workspace component to add.void addUpdateAction(UpdateAction action)
action
- the action to archive.java.util.List<? extends ArchiveContents.ArchivedComponent> getArchivedComponents()
java.util.List<? extends ArchiveContents.ArchivedCoupling> getArchivedCouplings()
ArchiveContents.ArchivedComponent getArchivedComponent(java.lang.String uri)
uri
- The uri for the component.UpdateAction createUpdateAction(Workspace workspace, WorkspaceComponentDeserializer componentDeserializer, ArchiveContents.ArchivedUpdateAction archivedAction)
workspace
- parent workspace in which to place the new actioncomponentDeserializer
- used to get the workspace component
corresponding to a workspace component idarchivedAction
- the archived action to convert into a real actionArchiveContents.ArchivedCoupling addCoupling(Coupling<?> coupling)
coupling
- The coupling to add.void toXml(java.io.OutputStream stream)
stream
- The stream to write to.static com.thoughtworks.xstream.XStream xstream()
public Workspace getWorkspaceParameters()
public java.util.List<ArchiveContents.ArchivedUpdateAction> getArchivedActions()