Class PropertyDependency

java.lang.Object
org.apache.nifi.components.PropertyDependency

public class PropertyDependency extends Object
  • Field Details

    • propertyName

      private final String propertyName
    • displayName

      private final String displayName
    • dependentValues

      private final Set<String> dependentValues
  • Constructor Details

    • PropertyDependency

      public PropertyDependency(String propertyName, String propertyDisplayName)
      Creates a dependency that is satisfied if any value is set for the property with the given name
      Parameters:
      propertyName - the name of the property that is depended upon
      propertyDisplayName - the display name of the property that is depended upon
    • PropertyDependency

      public PropertyDependency(String propertyName, String propertyDisplayName, Set<String> dependentValues)
      Creates a dependency that is satisfied only if the property with the given name has a value that is in the given set of dependent values
      Parameters:
      propertyName - the name of the property that is depended upon
      propertyDisplayName - the display name of the property that is depended upon
      dependentValues - the values that satisfy the dependency
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Returns:
      the name of the property that is depended upon
    • getPropertyDisplayName

      public String getPropertyDisplayName()
      Returns:
      the display name of the property that is depended upon
    • getDependentValues

      public Set<String> getDependentValues()
      Returns:
      the Set of values that satisfy the dependency
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object