com.xebialabs.deployit.packager.writers
Class ManifestXmlWriter

java.lang.Object
  extended by com.xebialabs.deployit.packager.writers.ManifestXmlWriter
All Implemented Interfaces:
ManifestWriter

public class ManifestXmlWriter
extends java.lang.Object
implements ManifestWriter


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xebialabs.deployit.packager.ManifestWriter
ManifestWriter.ManifestCiWriter
 
Constructor Summary
ManifestXmlWriter()
           
 
Method Summary
 void endManifest()
          Finishes writing the manifest.
 java.lang.String getManifestFileName()
           
 java.lang.String toString()
           
 ManifestWriter.ManifestCiWriter writeCi(java.lang.String name, com.xebialabs.deployit.plugin.api.reflect.Type type)
          Add a Deployable configuration item to the manifest.
 ManifestWriter.ManifestCiWriter writeCi(java.lang.String name, com.xebialabs.deployit.plugin.api.reflect.Type type, java.lang.String fileArtifact)
          Add a Deployable configuration item to the manifest.
 ManifestWriter.ManifestCiWriter writeVersion(com.xebialabs.deployit.plugin.api.reflect.Type type, java.lang.String version, java.lang.String application)
          Writes the deployment package information to the manifest file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManifestXmlWriter

public ManifestXmlWriter()
Method Detail

getManifestFileName

public java.lang.String getManifestFileName()
Specified by:
getManifestFileName in interface ManifestWriter

writeVersion

public ManifestWriter.ManifestCiWriter writeVersion(com.xebialabs.deployit.plugin.api.reflect.Type type,
                                                    java.lang.String version,
                                                    java.lang.String application)
Description copied from interface: ManifestWriter
Writes the deployment package information to the manifest file.

Specified by:
writeVersion in interface ManifestWriter
Parameters:
type - The type of the deployment package
version - The version of the application that this package comprises.
application - The application name.

endManifest

public void endManifest()
Description copied from interface: ManifestWriter
Finishes writing the manifest.

Specified by:
endManifest in interface ManifestWriter

writeCi

public ManifestWriter.ManifestCiWriter writeCi(java.lang.String name,
                                               com.xebialabs.deployit.plugin.api.reflect.Type type)
Description copied from interface: ManifestWriter
Add a Deployable configuration item to the manifest.

Specified by:
writeCi in interface ManifestWriter
Parameters:
name - the name of the CI
type - the type of the CI
Returns:
A new ManifestWriter.ManifestCiWriter that can be used to write the properties to the manifest.

writeCi

public ManifestWriter.ManifestCiWriter writeCi(java.lang.String name,
                                               com.xebialabs.deployit.plugin.api.reflect.Type type,
                                               java.lang.String fileArtifact)
Description copied from interface: ManifestWriter
Add a Deployable configuration item to the manifest.

Specified by:
writeCi in interface ManifestWriter
Parameters:
name - the name of the CI
type - the type of the CI
fileArtifact - the file associated with the artifact
Returns:
A new ManifestWriter.ManifestCiWriter that can be used to write the properties to the manifest.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object