Class DynamicConfigPropertyDef

java.lang.Object
io.apicurio.common.apps.config.DynamicConfigPropertyDef

public class DynamicConfigPropertyDef extends Object
Author:
eric.wittmann@gmail.com
  • Constructor Details

    • DynamicConfigPropertyDef

      public DynamicConfigPropertyDef()
      Constructor.
    • DynamicConfigPropertyDef

      public DynamicConfigPropertyDef(String name, Class type, String defaultValue)
      Constructor.
      Parameters:
      name - the config property name
      type - the property type
      defaultValue - the default value of the config property
  • Method Details

    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getType

      public Class getType()
      Returns:
      the type
    • setType

      public void setType(Class type)
      Parameters:
      type - the type to set
    • isValidValue

      public boolean isValidValue(String value)
      Returns true if the given value is valid for this dynamic property.
      Parameters:
      value - the value to test
      Returns:
      true if the value is valid
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • getDefaultValue

      public String getDefaultValue()
      Returns:
      the defaultValue
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
      Parameters:
      defaultValue - the defaultValue to set
    • getLabel

      public String getLabel()
      Returns:
      the label
    • setLabel

      public void setLabel(String label)
      Parameters:
      label - the label to set
    • getDescription

      public String getDescription()
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - the description to set
    • getRequires

      public String[] getRequires()
      Returns:
      the requires
    • setRequires

      public void setRequires(String[] requires)
      Parameters:
      requires - the requires to set