Package org.nuxeo.ecm.core.storage
Interface StateAccessor
-
- All Known Implementing Classes:
Node,State,State.StateDiff
public interface StateAccessorBasic interface to get/put simple values or arrays from a state object.- Since:
- 7.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object[]getArray(String name)Gets an array value.ObjectgetSingle(String name)Gets a single value.voidsetArray(String name, Object[] value)Sets an array value.voidsetSingle(String name, Object value)Sets a single value.
-
-
-
Method Detail
-
getSingle
Object getSingle(String name) throws PropertyException
Gets a single value.- Parameters:
name- the name- Returns:
- the value
- Throws:
PropertyException
-
getArray
Object[] getArray(String name) throws PropertyException
Gets an array value.- Parameters:
name- the name- Returns:
- the value
- Throws:
PropertyException
-
setSingle
void setSingle(String name, Object value) throws PropertyException
Sets a single value.- Parameters:
name- the namevalue- the value- Throws:
PropertyException
-
setArray
void setArray(String name, Object[] value) throws PropertyException
Sets an array value.- Parameters:
name- the namevalue- the value- Throws:
PropertyException
-
-