类 Requirements.Dependency
- java.lang.Object
-
- org.microbean.helm.chart.Requirements.Dependency
-
- 封闭类:
- Requirements
public static final class Requirements.Dependency extends Object
A description of a subchart that should be present in a parent Helm chart; not normally used directly by end users.- 作者:
- Laird Nelson
- 另请参阅:
Requirements
-
-
构造器概要
构造器 构造器 说明 Dependency()Creates a newRequirements.Dependency.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetAlias()Returns the alias to use for the subchart identified by thisRequirements.Dependency.StringgetCondition()Collection<Object>getImportValues()StringgetName()Returns the name of the subchart being represented by thisRequirements.Dependency.StringgetRepository()Returns theStringrepresentation of a URI which, whenindex.yamlis appended to it, results in a URI designating a Helm chart repository index.Collection<String>getTags()Returns theCollectionof tags that can be used to enable or disable subcharts.StringgetVersion()Returns the range of acceptable semantic versions of the subchart being represented by thisRequirements.Dependency.booleanisEnabled()Returnstrueif the subchart thisRequirements.Dependencyidentifies is to be considered enabled.booleanselects(ChartOuterClass.ChartOrBuilder chart)voidsetAlias(String alias)Sets the alias to use for the subchart identified by thisRequirements.Dependency.voidsetCondition(String condition)voidsetEnabled(boolean enabled)Sets whether the subchart thisRequirements.Dependencyidentifies is to be considered enabled.voidsetImportValues(Collection<Object> importValues)voidsetName(String name)Sets the name of the subchart being represented by thisRequirements.Dependency.voidsetRepository(String repository)Sets theStringrepresentation of a URI which, whenindex.yamlis appended to it, results in a URI designating a Helm chart repository index.voidsetTags(Collection<String> tags)Sets theCollectionof tags that can be used to enable or disable subcharts.voidsetVersion(String versionRange)Sets the range of acceptable semantic versions of the subchart being represented by thisRequirements.Dependency.StringtoString()Returns aStringrepresentation of thisRequirements.Dependency.
-
-
-
构造器详细资料
-
Dependency
public Dependency()
Creates a newRequirements.Dependency.
-
-
方法详细资料
-
getName
public final String getName()
Returns the name of the subchart being represented by thisRequirements.Dependency.This method may return
null.- 返回:
- the name of the subchart being represented by this
Requirements.Dependency, ornull - 另请参阅:
setName(String)
-
setName
public final void setName(String name)
Sets the name of the subchart being represented by thisRequirements.Dependency.- 参数:
name- the new name; may benull- 另请参阅:
getName()
-
getVersion
public final String getVersion()
Returns the range of acceptable semantic versions of the subchart being represented by thisRequirements.Dependency.This method may return
null.- 返回:
- the range of acceptable semantic versions of the
subchart being represented by this
Requirements.Dependency, ornull - 另请参阅:
setVersion(String)
-
setVersion
public final void setVersion(String versionRange)
Sets the range of acceptable semantic versions of the subchart being represented by thisRequirements.Dependency.- 参数:
versionRange- the new semantic version range; may benull- 另请参阅:
getVersion()
-
getRepository
public final String getRepository()
Returns theStringrepresentation of a URI which, whenindex.yamlis appended to it, results in a URI designating a Helm chart repository index.This method may return
null.- 返回:
- the
Stringrepresentation of a URI which, whenindex.yamlis appended to it, results in a URI designating a Helm chart repository index, ornull - 另请参阅:
setRepository(String)
-
setRepository
public final void setRepository(String repository)
Sets theStringrepresentation of a URI which, whenindex.yamlis appended to it, results in a URI designating a Helm chart repository index.- 参数:
repository- theStringrepresentation of a URI which, whenindex.yamlis appended to it, results in a URI designating a Helm chart repository index, ornull- 另请参阅:
getRepository()
-
getCondition
public final String getCondition()
Returns a period-separated path that, when evaluated against aMapofMaps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts.This method may return
null.This method may return a value that actually holds several such paths separated by commas. This is an artifact of the design of Helm's
requirements.yamlfile.- 返回:
- a period-separated path that, when evaluated against a
MapofMaps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts, ornull - 另请参阅:
setCondition(String)
-
setCondition
public final void setCondition(String condition)
Sets the period-separated path that, when evaluated against aMapofMaps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts.- 参数:
condition- a period-separated path that, when evaluated against aMapofMaps representing user-supplied or default values, will hopefully result in a value that can, in turn, be evaluated as a truth-value to aid in the enabling and disabling of subcharts, ornull- 另请参阅:
getCondition()
-
getTags
public final Collection<String> getTags()
Returns theCollectionof tags that can be used to enable or disable subcharts.This method may return
null.- 返回:
- the
Collectionof tags that can be used to enable or disable subcharts, ornull - 另请参阅:
setTags(Collection)
-
setTags
public final void setTags(Collection<String> tags)
Sets theCollectionof tags that can be used to enable or disable subcharts.- 参数:
tags- theCollectionof tags that can be used to enable or disable subcharts; may benull- 另请参阅:
getTags()
-
isEnabled
public final boolean isEnabled()
Returnstrueif the subchart thisRequirements.Dependencyidentifies is to be considered enabled.- 返回:
trueif the subchart thisRequirements.Dependencyidentifies is to be considered enabled;falseotherwise- 另请参阅:
setEnabled(boolean)
-
setEnabled
public final void setEnabled(boolean enabled)
Sets whether the subchart thisRequirements.Dependencyidentifies is to be considered enabled.- 参数:
enabled- whether the subchart thisRequirements.Dependencyidentifies is to be considered enabled- 另请参阅:
isEnabled()
-
getImportValues
public final Collection<Object> getImportValues()
Returns aCollectionrepresenting the contents of arequirements.yaml'simport-valuessection.This method may return
null.- 返回:
- a
Collectionrepresenting the contents of arequirements.yaml'simport-valuessection, ornull - 另请参阅:
setImportValues(Collection)
-
setImportValues
public final void setImportValues(Collection<Object> importValues)
- 参数:
importValues- theCollectionrepresenting the contents of arequirements.yaml'simport-valuessection; may benull- 另请参阅:
getImportValues()
-
getAlias
public final String getAlias()
Returns the alias to use for the subchart identified by thisRequirements.Dependency.This method may return
null.- 返回:
- the alias to use for the subchart identified by this
Requirements.Dependency, ornull - 另请参阅:
setAlias(String)
-
setAlias
public final void setAlias(String alias)
Sets the alias to use for the subchart identified by thisRequirements.Dependency.- 参数:
alias- the alias to use for the subchart identified by thisRequirements.Dependency; may benull- 另请参阅:
getAlias()
-
selects
public final boolean selects(ChartOuterClass.ChartOrBuilder chart)
- 参数:
chart- theChartOuterClass.ChartOrBuilderto check; may benullin which casefalsewill be returned- 返回:
trueif thisRequirements.Dependencyidentifies the givenChartOuterClass.ChartOrBuilder;falseotherwise
-
toString
public final String toString()
- 覆盖:
toString在类中Object- 返回:
- a non-
nullStringrepresentation of thisRequirements.Dependency
-
-