Class ConfigDefinition
- java.lang.Object
-
- org.opennms.features.config.dao.api.ConfigDefinition
-
public class ConfigDefinition extends Object
This class holds the definition for a configuration. It is based on OpenAPI plus Metadata.
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CONFIG_ID
static String
ELEMENT_NAME_TO_VALUE_NAME_TAG
protected io.swagger.v3.oas.models.OpenAPI
schema
static String
TOP_LEVEL_ELEMENT_NAME_TAG
static String
XSD_FILENAME_TAG
-
Constructor Summary
Constructors Constructor Description ConfigDefinition(String configName, Boolean allowMultiple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAllowMultiple()
String
getConfigName()
Map<String,Object>
getMeta()
Object
getMetaValue(String key)
io.swagger.v3.oas.models.OpenAPI
getSchema()
void
setAllowMultiple(boolean allowMultiple)
void
setConfigName(String configName)
void
setMeta(Map<String,Object> meta)
void
setMetaValue(String key, Object value)
void
setSchema(io.swagger.v3.oas.models.OpenAPI schema)
void
validate(String json)
-
-
-
Field Detail
-
TOP_LEVEL_ELEMENT_NAME_TAG
public static final String TOP_LEVEL_ELEMENT_NAME_TAG
- See Also:
- Constant Field Values
-
XSD_FILENAME_TAG
public static final String XSD_FILENAME_TAG
- See Also:
- Constant Field Values
-
ELEMENT_NAME_TO_VALUE_NAME_TAG
public static final String ELEMENT_NAME_TO_VALUE_NAME_TAG
- See Also:
- Constant Field Values
-
DEFAULT_CONFIG_ID
public static final String DEFAULT_CONFIG_ID
- See Also:
- Constant Field Values
-
schema
protected io.swagger.v3.oas.models.OpenAPI schema
-
-
Method Detail
-
getSchema
public io.swagger.v3.oas.models.OpenAPI getSchema()
-
setSchema
public void setSchema(io.swagger.v3.oas.models.OpenAPI schema)
-
getConfigName
public String getConfigName()
-
setConfigName
public void setConfigName(String configName)
-
getAllowMultiple
public boolean getAllowMultiple()
-
setAllowMultiple
public void setAllowMultiple(boolean allowMultiple)
-
validate
public void validate(String json)
-
-