Package jetbrains.buildServer.configs
Class FeatureBuilderImpl
- java.lang.Object
-
- jetbrains.buildServer.configs.FeatureBuilderImpl
-
- All Implemented Interfaces:
Comparable<FeatureBuilderImpl>
,FeatureBuilder
,HighlightedItem
- Direct Known Subclasses:
BuildFeatureBuilderImpl
,ProjectFeatureBuilderImpl
public abstract class FeatureBuilderImpl extends Object implements FeatureBuilder, Comparable<FeatureBuilderImpl>, HighlightedItem
-
-
Field Summary
Fields Modifier and Type Field Description protected Parameters
myParameters
protected String
myType
-
Constructor Summary
Constructors Constructor Description FeatureBuilderImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FeatureBuilderImpl
addParameter(String name, String value)
FeatureBuilderImpl
addParameters(Map<String,String> parameters)
int
compareTo(FeatureBuilderImpl o)
boolean
equals(FeatureBuilderImpl other, boolean includeId)
Returns true if this feature has same type, parameters, and (optionally) id as the specified other featureprotected abstract Map<String,String>
getDeafultParams()
String
getId()
Parameters
getParameters()
String
getType()
int
hashCode(boolean includeId)
Returns this feature hashCodeboolean
isHighlighted()
FeatureBuilderImpl
setHighlighted(boolean highlighted)
FeatureBuilderImpl
setId(String id)
FeatureBuilderImpl
setType(String type)
String
toString()
void
write(org.jdom.Element parent)
-
-
-
Field Detail
-
myType
protected String myType
-
myParameters
protected final Parameters myParameters
-
-
Method Detail
-
setId
@NotNull public FeatureBuilderImpl setId(@Nullable String id)
- Specified by:
setId
in interfaceFeatureBuilder
- Specified by:
setId
in interfaceHighlightedItem
-
getId
@Nullable public String getId()
- Specified by:
getId
in interfaceHighlightedItem
-
isHighlighted
public boolean isHighlighted()
- Specified by:
isHighlighted
in interfaceHighlightedItem
-
setHighlighted
public FeatureBuilderImpl setHighlighted(boolean highlighted)
- Specified by:
setHighlighted
in interfaceHighlightedItem
-
setType
@NotNull public FeatureBuilderImpl setType(@Nullable String type)
- Specified by:
setType
in interfaceFeatureBuilder
-
getType
@Nullable public String getType()
-
addParameter
@NotNull public FeatureBuilderImpl addParameter(@NotNull String name, @NotNull String value)
- Specified by:
addParameter
in interfaceFeatureBuilder
-
addParameters
@NotNull public FeatureBuilderImpl addParameters(@NotNull Map<String,String> parameters)
- Specified by:
addParameters
in interfaceFeatureBuilder
-
getParameters
@NotNull public Parameters getParameters()
-
write
public void write(@NotNull org.jdom.Element parent)
-
compareTo
public int compareTo(FeatureBuilderImpl o)
- Specified by:
compareTo
in interfaceComparable<FeatureBuilderImpl>
-
equals
public boolean equals(@NotNull FeatureBuilderImpl other, boolean includeId)
Returns true if this feature has same type, parameters, and (optionally) id as the specified other feature- Parameters:
other
- build features to check for equalityincludeId
- whether ids should be compared- Returns:
- see above
-
hashCode
public int hashCode(boolean includeId)
Returns this feature hashCode- Parameters:
includeId
- whether id should be included in the hashCode- Returns:
- see above
-
-