jetbrains.buildServer.artifacts
Class RevisionRules.AbstractRevisionRule

java.lang.Object
  extended by jetbrains.buildServer.artifacts.RevisionRules.AbstractRevisionRule
All Implemented Interfaces:
RevisionRule, XmlExternalizable
Direct Known Subclasses:
BuildTagRevisionRule
Enclosing class:
RevisionRules

public abstract static class RevisionRules.AbstractRevisionRule
extends java.lang.Object
implements RevisionRule, XmlExternalizable


Constructor Summary
protected RevisionRules.AbstractRevisionRule(java.lang.String name, java.lang.String description, java.lang.String revision, java.lang.String branch)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getBranch()
          Returns branch of this rule or null if branch is not specified or rule doesn't support it
 java.lang.String getDescription()
          Returns description of this rule
 java.lang.String getName()
          Returns code name of the revision.
 java.lang.String getRevision()
          Returns actual revision value
 int hashCode()
           
 java.lang.String toString()
           
 void writeTo(org.jdom.Element parentElement)
          Write data to the JDOM element
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RevisionRules.AbstractRevisionRule

protected RevisionRules.AbstractRevisionRule(@NotNull
                                             java.lang.String name,
                                             @NotNull
                                             java.lang.String description,
                                             @Nullable
                                             java.lang.String revision,
                                             @Nullable
                                             java.lang.String branch)
Method Detail

getBranch

public java.lang.String getBranch()
Description copied from interface: RevisionRule
Returns branch of this rule or null if branch is not specified or rule doesn't support it

Specified by:
getBranch in interface RevisionRule
Returns:
see above

getName

public java.lang.String getName()
Description copied from interface: RevisionRule
Returns code name of the revision. RevisionRules

Specified by:
getName in interface RevisionRule
Returns:
code name of the revision

getRevision

public java.lang.String getRevision()
Description copied from interface: RevisionRule
Returns actual revision value

Specified by:
getRevision in interface RevisionRule
Returns:
actual revision value

getDescription

public java.lang.String getDescription()
Description copied from interface: RevisionRule
Returns description of this rule

Specified by:
getDescription in interface RevisionRule
Returns:
description of this rule

writeTo

public void writeTo(org.jdom.Element parentElement)
Description copied from interface: XmlExternalizable
Write data to the JDOM element

Specified by:
writeTo in interface XmlExternalizable
Parameters:
parentElement - - parent element to write data to

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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