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 protectedAbstractRevisionRule(String name, String description, String revision, String branch)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetBranch()Returns branch of this rule or null if branch is not specified or rule doesn't support itStringgetDescription()Returns description of this ruleStringgetName()Returns code name of the revision.StringgetRevision()Returns actual revision valueinthashCode()StringtoString()voidwriteTo(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:
getBranchin interfaceRevisionRule- Returns:
- see above
- See Also:
RevisionRule.getBranch()
-
getName
@NotNull public String getName()
Returns code name of the revision.RevisionRules- Specified by:
getNamein interfaceRevisionRule- Returns:
- code name of the revision
- See Also:
RevisionRule.getName()
-
getRevision
@NotNull public String getRevision()
Returns actual revision value- Specified by:
getRevisionin interfaceRevisionRule- Returns:
- actual revision value
- See Also:
RevisionRule.getRevision()
-
getDescription
@NotNull public String getDescription()
Returns description of this rule- Specified by:
getDescriptionin interfaceRevisionRule- Returns:
- description of this rule
- See Also:
RevisionRule.getDescription()
-
writeTo
public void writeTo(org.jdom.Element parentElement)
Description copied from interface:XmlExternalizableWrite data to the JDOM element- Specified by:
writeToin interfaceXmlExternalizable- Parameters:
parentElement- - parent element to write data to
-
-