Package io.apicurio.common.apps.config
Class DynamicConfigPropertyDef
java.lang.Object
io.apicurio.common.apps.config.DynamicConfigPropertyDef
- Author:
- eric.wittmann@gmail.com
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DynamicConfigPropertyDef(String name, Class type, String defaultValue) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLabel()getName()String[]getType()inthashCode()booleanisValidValue(String value) Returns true if the given value is valid for this dynamic property.voidsetDefaultValue(String defaultValue) voidsetDescription(String description) voidvoidvoidsetRequires(String[] requires) voidtoString()
-
Constructor Details
-
DynamicConfigPropertyDef
public DynamicConfigPropertyDef()Constructor. -
DynamicConfigPropertyDef
Constructor.- Parameters:
name- the config property nametype- the property typedefaultValue- the default value of the config property
-
-
Method Details
-
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
isValidValue
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() -
equals
-
toString
-
getDefaultValue
- Returns:
- the defaultValue
-
setDefaultValue
- Parameters:
defaultValue- the defaultValue to set
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label- the label to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getRequires
- Returns:
- the requires
-
setRequires
- Parameters:
requires- the requires to set
-