@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableProperty extends Object implements ComponentDefinition.Property
ComponentDefinition.Property.
Use the builder to create immutable instances:
new ImmutableProperty.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableProperty.Builder
Builds instances of type
ImmutableProperty. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableProperty |
copyOf(ComponentDefinition.Property instance)
Creates an immutable copy of a
ComponentDefinition.Property value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableProperty that have equal attribute values. |
Optional<String> |
getControlHint() |
Optional<String> |
getDefaultValue() |
Optional<String> |
getDeprecated() |
Optional<String> |
getDescription() |
Optional<String> |
getDisplayName() |
Optional<String> |
getEnums() |
Optional<String> |
getEnumValues() |
Optional<String> |
getGroup() |
Optional<String> |
getJavaType() |
Optional<String> |
getKind() |
Optional<String> |
getLabelHint() |
Optional<String> |
getMultiValue() |
Optional<String> |
getName() |
Optional<String> |
getPlaceholder() |
Optional<String> |
getPrefix() |
Optional<String> |
getRequired() |
Optional<String> |
getSecret() |
Optional<String> |
getType() |
int |
hashCode()
Computes a hash code from attributes:
displayName, kind, group, required, type, javaType, deprecated, secret, description, controlHint, labelHint, placeholder, name, defaultValue, enums, prefix, multiValue, enumValues. |
String |
toString()
Prints the immutable value
Property with attribute values. |
ImmutableProperty |
withControlHint(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
controlHint attribute. |
ImmutableProperty |
withControlHint(String value)
Copy the current immutable object by setting a present value for the optional
controlHint attribute. |
ImmutableProperty |
withDefaultValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
defaultValue attribute. |
ImmutableProperty |
withDefaultValue(String value)
Copy the current immutable object by setting a present value for the optional
defaultValue attribute. |
ImmutableProperty |
withDeprecated(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
deprecated attribute. |
ImmutableProperty |
withDeprecated(String value)
Copy the current immutable object by setting a present value for the optional
deprecated attribute. |
ImmutableProperty |
withDescription(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
description attribute. |
ImmutableProperty |
withDescription(String value)
Copy the current immutable object by setting a present value for the optional
description attribute. |
ImmutableProperty |
withDisplayName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
displayName attribute. |
ImmutableProperty |
withDisplayName(String value)
Copy the current immutable object by setting a present value for the optional
displayName attribute. |
ImmutableProperty |
withEnums(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
enums attribute. |
ImmutableProperty |
withEnums(String value)
Copy the current immutable object by setting a present value for the optional
enums attribute. |
ImmutableProperty |
withEnumValues(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
enumValues attribute. |
ImmutableProperty |
withEnumValues(String value)
Copy the current immutable object by setting a present value for the optional
enumValues attribute. |
ImmutableProperty |
withGroup(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
group attribute. |
ImmutableProperty |
withGroup(String value)
Copy the current immutable object by setting a present value for the optional
group attribute. |
ImmutableProperty |
withJavaType(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
javaType attribute. |
ImmutableProperty |
withJavaType(String value)
Copy the current immutable object by setting a present value for the optional
javaType attribute. |
ImmutableProperty |
withKind(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
kind attribute. |
ImmutableProperty |
withKind(String value)
Copy the current immutable object by setting a present value for the optional
kind attribute. |
ImmutableProperty |
withLabelHint(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
labelHint attribute. |
ImmutableProperty |
withLabelHint(String value)
Copy the current immutable object by setting a present value for the optional
labelHint attribute. |
ImmutableProperty |
withMultiValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
multiValue attribute. |
ImmutableProperty |
withMultiValue(String value)
Copy the current immutable object by setting a present value for the optional
multiValue attribute. |
ImmutableProperty |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutableProperty |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
ImmutableProperty |
withPlaceholder(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
placeholder attribute. |
ImmutableProperty |
withPlaceholder(String value)
Copy the current immutable object by setting a present value for the optional
placeholder attribute. |
ImmutableProperty |
withPrefix(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
prefix attribute. |
ImmutableProperty |
withPrefix(String value)
Copy the current immutable object by setting a present value for the optional
prefix attribute. |
ImmutableProperty |
withRequired(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
required attribute. |
ImmutableProperty |
withRequired(String value)
Copy the current immutable object by setting a present value for the optional
required attribute. |
ImmutableProperty |
withSecret(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
secret attribute. |
ImmutableProperty |
withSecret(String value)
Copy the current immutable object by setting a present value for the optional
secret attribute. |
ImmutableProperty |
withType(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
type attribute. |
ImmutableProperty |
withType(String value)
Copy the current immutable object by setting a present value for the optional
type attribute. |
public Optional<String> getDisplayName()
getDisplayName in interface ComponentDefinition.PropertydisplayName attributepublic Optional<String> getKind()
getKind in interface ComponentDefinition.Propertykind attributepublic Optional<String> getGroup()
getGroup in interface ComponentDefinition.Propertygroup attributepublic Optional<String> getRequired()
getRequired in interface ComponentDefinition.Propertyrequired attributepublic Optional<String> getType()
getType in interface ComponentDefinition.Propertytype attributepublic Optional<String> getJavaType()
getJavaType in interface ComponentDefinition.PropertyjavaType attributepublic Optional<String> getDeprecated()
getDeprecated in interface ComponentDefinition.Propertydeprecated attributepublic Optional<String> getSecret()
getSecret in interface ComponentDefinition.Propertysecret attributepublic Optional<String> getDescription()
getDescription in interface ComponentDefinition.Propertydescription attributepublic Optional<String> getControlHint()
getControlHint in interface ComponentDefinition.PropertycontrolHint attributepublic Optional<String> getLabelHint()
getLabelHint in interface ComponentDefinition.PropertylabelHint attributepublic Optional<String> getPlaceholder()
getPlaceholder in interface ComponentDefinition.Propertyplaceholder attributepublic Optional<String> getName()
getName in interface ComponentDefinition.Propertyname attributepublic Optional<String> getDefaultValue()
getDefaultValue in interface ComponentDefinition.PropertydefaultValue attributepublic Optional<String> getEnums()
getEnums in interface ComponentDefinition.Propertyenums attributepublic Optional<String> getPrefix()
getPrefix in interface ComponentDefinition.Propertyprefix attributepublic Optional<String> getMultiValue()
getMultiValue in interface ComponentDefinition.PropertymultiValue attributepublic Optional<String> getEnumValues()
getEnumValues in interface ComponentDefinition.PropertyenumValues attributepublic final ImmutableProperty withDisplayName(String value)
displayName attribute.value - The value for displayNamethis objectpublic final ImmutableProperty withDisplayName(Optional<String> optional)
displayName attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for displayNamethis objectpublic final ImmutableProperty withKind(String value)
kind attribute.value - The value for kindthis objectpublic final ImmutableProperty withKind(Optional<String> optional)
kind attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for kindthis objectpublic final ImmutableProperty withGroup(String value)
group attribute.value - The value for groupthis objectpublic final ImmutableProperty withGroup(Optional<String> optional)
group attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for groupthis objectpublic final ImmutableProperty withRequired(String value)
required attribute.value - The value for requiredthis objectpublic final ImmutableProperty withRequired(Optional<String> optional)
required attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for requiredthis objectpublic final ImmutableProperty withType(String value)
type attribute.value - The value for typethis objectpublic final ImmutableProperty withType(Optional<String> optional)
type attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for typethis objectpublic final ImmutableProperty withJavaType(String value)
javaType attribute.value - The value for javaTypethis objectpublic final ImmutableProperty withJavaType(Optional<String> optional)
javaType attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for javaTypethis objectpublic final ImmutableProperty withDeprecated(String value)
deprecated attribute.value - The value for deprecatedthis objectpublic final ImmutableProperty withDeprecated(Optional<String> optional)
deprecated attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for deprecatedthis objectpublic final ImmutableProperty withSecret(String value)
secret attribute.value - The value for secretthis objectpublic final ImmutableProperty withSecret(Optional<String> optional)
secret attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for secretthis objectpublic final ImmutableProperty withDescription(String value)
description attribute.value - The value for descriptionthis objectpublic final ImmutableProperty withDescription(Optional<String> optional)
description attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for descriptionthis objectpublic final ImmutableProperty withControlHint(String value)
controlHint attribute.value - The value for controlHintthis objectpublic final ImmutableProperty withControlHint(Optional<String> optional)
controlHint attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for controlHintthis objectpublic final ImmutableProperty withLabelHint(String value)
labelHint attribute.value - The value for labelHintthis objectpublic final ImmutableProperty withLabelHint(Optional<String> optional)
labelHint attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for labelHintthis objectpublic final ImmutableProperty withPlaceholder(String value)
placeholder attribute.value - The value for placeholderthis objectpublic final ImmutableProperty withPlaceholder(Optional<String> optional)
placeholder attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for placeholderthis objectpublic final ImmutableProperty withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutableProperty withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic final ImmutableProperty withDefaultValue(String value)
defaultValue attribute.value - The value for defaultValuethis objectpublic final ImmutableProperty withDefaultValue(Optional<String> optional)
defaultValue attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for defaultValuethis objectpublic final ImmutableProperty withEnums(String value)
enums attribute.value - The value for enumsthis objectpublic final ImmutableProperty withEnums(Optional<String> optional)
enums attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enumsthis objectpublic final ImmutableProperty withPrefix(String value)
prefix attribute.value - The value for prefixthis objectpublic final ImmutableProperty withPrefix(Optional<String> optional)
prefix attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for prefixthis objectpublic final ImmutableProperty withMultiValue(String value)
multiValue attribute.value - The value for multiValuethis objectpublic final ImmutableProperty withMultiValue(Optional<String> optional)
multiValue attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for multiValuethis objectpublic final ImmutableProperty withEnumValues(String value)
enumValues attribute.value - The value for enumValuesthis objectpublic final ImmutableProperty withEnumValues(Optional<String> optional)
enumValues attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for enumValuesthis objectpublic boolean equals(Object another)
ImmutableProperty that have equal attribute values.public int hashCode()
displayName, kind, group, required, type, javaType, deprecated, secret, description, controlHint, labelHint, placeholder, name, defaultValue, enums, prefix, multiValue, enumValues.public String toString()
Property with attribute values.public static ImmutableProperty copyOf(ComponentDefinition.Property instance)
ComponentDefinition.Property value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2016–2019 Red Hat. All rights reserved.