Class StandardResourceDefinition
java.lang.Object
org.apache.nifi.components.resource.StandardResourceDefinition
- All Implemented Interfaces:
ResourceDefinition
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceCardinality
private final Set
<ResourceType> -
Constructor Summary
ConstructorDescriptionStandardResourceDefinition
(ResourceCardinality cardinality, Set<ResourceType> resourceTypes) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the number of resources that should be reference-able by a component property
-
Field Details
-
cardinality
-
resourceTypes
-
-
Constructor Details
-
StandardResourceDefinition
-
-
Method Details
-
getCardinality
Description copied from interface:ResourceDefinition
Specifies the number of resources that should be reference-able by a component property- Specified by:
getCardinality
in interfaceResourceDefinition
- Returns:
- the cardinality for the number of resources that should be referenced
-
getResourceTypes
- Specified by:
getResourceTypes
in interfaceResourceDefinition
- Returns:
- the types of resources that are allowed to be referenced
-