Package io.apicurio.common.apps.config
Class DynamicConfigPropertyDef
- java.lang.Object
-
- io.apicurio.common.apps.config.DynamicConfigPropertyDef
-
public class DynamicConfigPropertyDef extends Object
- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description DynamicConfigPropertyDef()Constructor.DynamicConfigPropertyDef(String name, Class type, String defaultValue)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDefaultValue()StringgetDescription()StringgetLabel()StringgetName()String[]getRequires()ClassgetType()inthashCode()booleanisValidValue(String value)Returns true if the given value is valid for this dynamic property.voidsetDefaultValue(String defaultValue)voidsetDescription(String description)voidsetLabel(String label)voidsetName(String name)voidsetRequires(String[] requires)voidsetType(Class type)StringtoString()
-
-
-
Method Detail
-
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:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
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
-
-