public class AllowableValue extends Object
Represents a valid value for a PropertyDescriptor
Modifier and Type | Field and Description |
---|---|
private String |
description |
private String |
displayName |
private String |
value |
Constructor and Description |
---|
AllowableValue(String value)
Constructs a new AllowableValue with the given value and and the same
display name and no description.
|
AllowableValue(String value,
String displayName)
Constructs a new AllowableValue with the given value and display name and
no description
|
AllowableValue(String value,
String displayName,
String description)
Constructs a new AllowableValue with the given value, display name, and
description
|
private final String value
private final String displayName
private final String description
public AllowableValue(String value)
value
- that is allowedpublic AllowableValue(String value, String displayName)
value
- that is alloweddisplayName
- to display for the valueNullPointerException
- if either argument is nullpublic AllowableValue(String value, String displayName, String description)
value
- that is validdisplayName
- to show for the valuedescription
- of the valueNullPointerException
- if identifier or value is nullpublic String getValue()
public String getDisplayName()
public String getDescription()
null
if no
description was providedpublic boolean equals(Object obj)
equals
in class Object
this
is equal to obj
of obj
is the
same object as this
or if obj
is an instance of
AllowableValue
and both have the same value, or if
obj
is a String and is equal to
this.getValue()
.public int hashCode()
Copyright © 2015 Apache NiFi Project. All rights reserved.