Package org.apache.nifi.components
Class PropertyDescriptor
java.lang.Object
org.apache.nifi.components.PropertyDescriptor
- All Implemented Interfaces:
Comparable<PropertyDescriptor>
An immutable object for holding information about a type of component
property.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
private static final class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<AllowableValue> The allowable values for this property.private final Class
<? extends ControllerService> the interface of theControllerService
that this Property refers to; will be null if not identifying a ControllerService.private final String
The default value for this propertyprivate final Set
<PropertyDependency> The list of dependencies that this property has on other propertiesprivate final String
And explanation of the meaning of the given property.private final String
The name that should be displayed to user when referencing this propertyprivate final boolean
indicates whether this property well-known for this processor or is user-definedprivate final boolean
indicates whether or not this property represents resources that should be added to the classpath and used for loading native libraries for this instance of the componentprivate final ExpressionLanguageScope
indicates whether or nor this property will evaluate expression language against the flow file attributesprivate final String
The proper name for the property.static final PropertyDescriptor
private final boolean
Determines whether the property is required for this processorprivate final ResourceDefinition
The definition of the resource(s) that this property referencesprivate final boolean
indicates that the value for this property should be considered sensitive and protected whenever stored or representedThe validators that should be used whenever an attempt is made to set this property value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Class
<? extends ControllerService> getName()
int
hashCode()
boolean
boolean
boolean
boolean
boolean
toString()
validate
(String input, ValidationContext context) Validates the given input against this property descriptor's validator.
-
Field Details
-
NULL_DESCRIPTOR
-
name
The proper name for the property. This is the primary mechanism of comparing equality. -
displayName
The name that should be displayed to user when referencing this property -
description
And explanation of the meaning of the given property. This description is meant to be displayed to a user or simply provide a mechanism of documenting intent. -
defaultValue
The default value for this property -
allowableValues
The allowable values for this property. If empty then the allowable values are not constrained -
required
private final boolean requiredDetermines whether the property is required for this processor -
sensitive
private final boolean sensitiveindicates that the value for this property should be considered sensitive and protected whenever stored or represented -
dynamic
private final boolean dynamicindicates whether this property well-known for this processor or is user-defined -
expressionLanguageScope
indicates whether or nor this property will evaluate expression language against the flow file attributes -
dynamicallyModifiesClasspath
private final boolean dynamicallyModifiesClasspathindicates whether or not this property represents resources that should be added to the classpath and used for loading native libraries for this instance of the component -
controllerServiceDefinition
the interface of theControllerService
that this Property refers to; will be null if not identifying a ControllerService. -
validators
The validators that should be used whenever an attempt is made to set this property value. Any allowable values specified will be checked first and any validators specified will be ignored. -
dependencies
The list of dependencies that this property has on other properties -
resourceDefinition
The definition of the resource(s) that this property references
-
-
Constructor Details
-
PropertyDescriptor
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PropertyDescriptor>
-
validate
Validates the given input against this property descriptor's validator. If this descriptor has a set of allowable values then the given value is only checked against the allowable values.- Parameters:
input
- the value to validatecontext
- the context of validation- Returns:
- the result of validating the input
-
getDisplayName
-
getName
-
getDescription
-
getDefaultValue
-
isRequired
public boolean isRequired() -
isSensitive
public boolean isSensitive() -
isDynamic
public boolean isDynamic() -
isExpressionLanguageSupported
public boolean isExpressionLanguageSupported() -
getExpressionLanguageScope
-
isDynamicClasspathModifier
public boolean isDynamicClasspathModifier() -
getControllerServiceDefinition
-
getValidators
-
getAllowableValues
-
getDependencies
-
getResourceDefinition
-
equals
-
hashCode
public int hashCode() -
toString
-