T
- Type of the element valuepublic interface RepositoryElementType<T> extends ElementType<T>, RepositoryModelItemType
Modifier and Type | Method and Description |
---|---|
Object |
read(RepositoryData parentData,
String name)
Read the value in the given repository data
|
void |
write(ModifiableRepositoryData parentData,
String name,
Object value)
Write the value into the given repository data
|
castValue, fromJSONForClient, getManagedClass, getManagedClassArray, isCompatible, isSimple, parseConfiguration, toString, valueToJSONForClient
isCompatible
getId, valueToSAX
setPluginInfo
Object read(RepositoryData parentData, String name) throws BadItemTypeException
parentData
- repository data containing the valuename
- the name of the element to readBadItemTypeException
- if the reading value doesn't match this element typevoid write(ModifiableRepositoryData parentData, String name, Object value) throws BadItemTypeException
parentData
- repository where to store the value.name
- the name of the element to writevalue
- the value to write. Can be a T or a T[]. That's why it is an ObjectBadItemTypeException
- If the given value doesn't match this element type