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
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
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() . |
String |
getDescription()
Returns a description for this value, or
null if no
description was provided |
String |
getDisplayName()
Returns a human-readable name for this AllowableValue
|
String |
getValue()
Returns the value of this AllowableValue
|
int |
hashCode()
Hash Code is based solely off of the value
|
String |
toString() |
private final String value
private final String displayName
private final String description
public AllowableValue(String value)
value
- public AllowableValue(String value, String displayName)
value
- displayName
- NullPointerException
- if either argument is nullpublic AllowableValue(String value, String displayName, String description)
value
- displayName
- description
- NullPointerException
- if identifier or value is nullpublic String getValue()
public String getDisplayName()
public String getDescription()
null
if no
description was providedpublic boolean equals(Object obj)
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 (incubating). All rights reserved.