Package jetbrains.buildServer.artifacts
Class RevisionRules.AbstractRevisionRule
- java.lang.Object
-
- jetbrains.buildServer.artifacts.RevisionRules.AbstractRevisionRule
-
- All Implemented Interfaces:
RevisionRule
,XmlExternalizable
- Direct Known Subclasses:
BuildTagRevisionRule
- Enclosing class:
- RevisionRules
public abstract static class RevisionRules.AbstractRevisionRule extends Object implements RevisionRule
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRevisionRule(String name, String description, String revision, String branch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBranch()
Returns branch of this rule or null if branch is not specified or rule doesn't support itString
getDescription()
Returns description of this ruleString
getName()
Returns code name of the revision.String
getRevision()
Returns actual revision valueint
hashCode()
String
toString()
void
writeTo(org.jdom.Element parentElement)
Write data to the JDOM element
-
-
-
Method Detail
-
getBranch
@Nullable public String getBranch()
Returns branch of this rule or null if branch is not specified or rule doesn't support it- Specified by:
getBranch
in interfaceRevisionRule
- Returns:
- see above
- See Also:
RevisionRule.getBranch()
-
getName
@NotNull public String getName()
Returns code name of the revision.RevisionRules
- Specified by:
getName
in interfaceRevisionRule
- Returns:
- code name of the revision
- See Also:
RevisionRule.getName()
-
getRevision
@NotNull public String getRevision()
Returns actual revision value- Specified by:
getRevision
in interfaceRevisionRule
- Returns:
- actual revision value
- See Also:
RevisionRule.getRevision()
-
getDescription
@NotNull public String getDescription()
Returns description of this rule- Specified by:
getDescription
in interfaceRevisionRule
- Returns:
- description of this rule
- See Also:
RevisionRule.getDescription()
-
writeTo
public void writeTo(org.jdom.Element parentElement)
Description copied from interface:XmlExternalizable
Write data to the JDOM element- Specified by:
writeTo
in interfaceXmlExternalizable
- Parameters:
parentElement
- - parent element to write data to
-
-