com.ibm.zosconnect.buildtoolkit

Class ServiceArtifact

  • java.lang.Object
    • com.ibm.zosconnect.buildtoolkit.ServiceArtifact


  • public class ServiceArtifact
    extends java.lang.Object
    Objects of this type are used to represent files that are included in the service archive.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ServiceArtifact(java.lang.String name, java.lang.String path, byte[] content)
      Create the ServiceArtifact to be stored in the service archive which represents a file.
      ServiceArtifact(java.lang.String name, java.lang.String path, byte[] content, java.lang.String version)
      Create the ServiceArtifact with a specified version to be stored in the service archive which represents a file
      ServiceArtifact(java.lang.String name, java.lang.String path, byte[] content, java.lang.String version, java.lang.String type)
      Create the ServiceArtifact with a specified version to be stored in the service archive which represents the specified type
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      byte[] getContent() 
      java.lang.String getName() 
      java.lang.String getPath() 
      java.lang.String getType() 
      java.lang.String getVersion() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceArtifact

        public ServiceArtifact(java.lang.String name,
                               java.lang.String path,
                               byte[] content)
        Create the ServiceArtifact to be stored in the service archive which represents a file.
        Parameters:
        name - The name of the property associated with this file
        path - The path the file should be stored at in the service archive
        content - The contents of the file as a byte array
      • ServiceArtifact

        public ServiceArtifact(java.lang.String name,
                               java.lang.String path,
                               byte[] content,
                               java.lang.String version)
        Create the ServiceArtifact with a specified version to be stored in the service archive which represents a file
        Parameters:
        name - The name of the property associated with this file
        path - The path the file should be stored at in the service archive
        content - The contents of the file as a byte array
        version - The version of the file
      • ServiceArtifact

        public ServiceArtifact(java.lang.String name,
                               java.lang.String path,
                               byte[] content,
                               java.lang.String version,
                               java.lang.String type)
        Create the ServiceArtifact with a specified version to be stored in the service archive which represents the specified type
        Parameters:
        name - The name of the property associated with this artifact
        path - The path the artifact should be stored at in the service archive
        content - The contents of the artifact as a byte array
        version - The version of the artifact
        type - The type of the artifact
    • Method Detail

      • getPath

        public java.lang.String getPath()
        Returns:
        The path to store the artifact in the service archive
      • getContent

        public byte[] getContent()
        Returns:
        The contents of the artifact as a byte array
      • getName

        public java.lang.String getName()
        Returns:
        The name of the property this artifact is for
      • getVersion

        public java.lang.String getVersion()
        Returns:
        The version of the artifact
      • getType

        public java.lang.String getType()
        Returns:
        The type of the artifact, null if the artifact is a file