public final class PropertyDescriptor extends Object implements Comparable<PropertyDescriptor>
Modifier and Type | Class and Description |
---|---|
static class |
PropertyDescriptor.Builder |
private static class |
PropertyDescriptor.ConstrainedSetValidator |
Modifier and Type | Field and Description |
---|---|
private List<AllowableValue> |
allowableValues
The allowable values for this property.
|
private Class<? extends ControllerService> |
controllerServiceDefinition
the interface of the
ControllerService that this Property refers
to; will be null if not identifying a ControllerService. |
private String |
defaultValue
The default value for this property
|
private String |
description
And explanation of the meaning of the given property.
|
private String |
displayName
The name that should be displayed to user when referencing this property
|
private boolean |
dynamic
indicates whether this property well-known for this processor or is
user-defined
|
private boolean |
expressionLanguageSupported
indicates whether or not this property supports the Attribute Expression
Language
|
private String |
name
The proper name for the property.
|
static PropertyDescriptor |
NULL_DESCRIPTOR |
private boolean |
required
Determines whether the property is required for this processor
|
private boolean |
sensitive
indicates that the value for this property should be considered sensitive
and protected whenever stored or represented
|
private List<Validator> |
validators
The validators that should be used whenever an attempt is made to set
this property value.
|
Modifier | Constructor and Description |
---|---|
protected |
PropertyDescriptor(PropertyDescriptor.Builder builder) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PropertyDescriptor o) |
boolean |
equals(Object other) |
List<AllowableValue> |
getAllowableValues() |
Class<? extends ControllerService> |
getControllerServiceDefinition() |
String |
getDefaultValue() |
String |
getDescription() |
String |
getDisplayName() |
String |
getName() |
List<Validator> |
getValidators() |
int |
hashCode() |
boolean |
isDynamic() |
boolean |
isExpressionLanguageSupported() |
boolean |
isRequired() |
boolean |
isSensitive() |
String |
toString() |
ValidationResult |
validate(String input,
ValidationContext context)
Validates the given input against this property descriptor's validator.
|
public static final PropertyDescriptor NULL_DESCRIPTOR
private final String name
private final String displayName
private final String description
private final String defaultValue
private final List<AllowableValue> allowableValues
private final boolean required
private final boolean sensitive
private final boolean dynamic
private final boolean expressionLanguageSupported
private final Class<? extends ControllerService> controllerServiceDefinition
ControllerService
that this Property refers
to; will be null if not identifying a ControllerService.protected PropertyDescriptor(PropertyDescriptor.Builder builder)
public int compareTo(PropertyDescriptor o)
compareTo
in interface Comparable<PropertyDescriptor>
public ValidationResult validate(String input, ValidationContext context)
input
- the value to validatecontext
- the context of validationpublic String getDisplayName()
public String getName()
public String getDescription()
public String getDefaultValue()
public boolean isRequired()
public boolean isSensitive()
public boolean isDynamic()
public boolean isExpressionLanguageSupported()
public Class<? extends ControllerService> getControllerServiceDefinition()
public List<AllowableValue> getAllowableValues()
Copyright © 2015 Apache NiFi Project. All rights reserved.