com.caucho.env.repository
Class CommitBuilder

java.lang.Object
  extended by com.caucho.env.repository.CommitBuilder

public class CommitBuilder
extends java.lang.Object

Builds a repository commit.


Constructor Summary
CommitBuilder()
           
 
Method Summary
 CommitBuilder attribute(java.lang.String key, java.lang.String value)
          Assign a generic attribute
 java.lang.String getArchiveId()
           
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
           
 java.lang.String getId()
           
 java.lang.String getStage()
           
 java.lang.String getTagKey()
           
 java.lang.String getType()
           
 java.lang.String getVersion()
           
 CommitBuilder message(java.lang.String message)
          Assign the commit message.
 CommitBuilder stage(java.lang.String stage)
          Assigns the commit's stage.
 CommitBuilder tagKey(java.lang.String key)
          Sets the tagKey
 java.lang.String toString()
           
 CommitBuilder type(java.lang.String type)
          Assigns the commit's type.
 void validate()
           
 CommitBuilder version(int major, int minor, int micro, java.lang.String qualifier)
          Assign a version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommitBuilder

public CommitBuilder()
Method Detail

stage

public CommitBuilder stage(java.lang.String stage)
Assigns the commit's stage.


getStage

public java.lang.String getStage()

type

public CommitBuilder type(java.lang.String type)
Assigns the commit's type.


getType

public java.lang.String getType()

tagKey

public CommitBuilder tagKey(java.lang.String key)
Sets the tagKey


getTagKey

public java.lang.String getTagKey()

version

public CommitBuilder version(int major,
                             int minor,
                             int micro,
                             java.lang.String qualifier)
Assign a version.


getVersion

public java.lang.String getVersion()

message

public CommitBuilder message(java.lang.String message)
Assign the commit message.


attribute

public CommitBuilder attribute(java.lang.String key,
                               java.lang.String value)
Assign a generic attribute


getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()

getId

public java.lang.String getId()

getArchiveId

public java.lang.String getArchiveId()

validate

public void validate()

toString

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