public interface PropertiesValues
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBinaryProperty(String name)
Gets a property as a byte array
|
Boolean |
getBooleanProperty(String name)
Gets a property as a boolean
|
Integer |
getIntegerProperty(String name)
Gets a property as an integer
|
Set<String> |
getKeys()
Get the list of all keys at this level
|
PropertiesList |
getList(String name)
Gets a list structure for the specified name
It will create properties list xxx.name[0],xxx.name[1],...
|
String |
getProperty(String name)
Gets a property as a string
|
PropertiesValues |
getValues(String name)
Gets a sub-structure for the specified name
It will create properties list xxx.name.prop1,xxx.name.prop2,...
|
void |
remove(String name)
Remove the property, lists and sub-structure with the specified name
|
String |
removeProperty(String name)
Removes and return a single property
|
void |
setBinaryProperty(String name,
byte[] data)
Sets a byte array property
|
void |
setBooleanProperty(String name,
boolean value)
Sets a boolean property
|
void |
setIntegerProperty(String name,
int value)
Sets an integer property
|
void |
setProperty(String name,
String value)
Sets a string property
|
org.json.JSONObject |
toJSON()
Convert to JSON object
|
void |
updateFromJSON(org.json.JSONObject array)
Import from JSON array
|
String getProperty(String name)
name - property nameBoolean getBooleanProperty(String name)
name - property nameInteger getIntegerProperty(String name)
name - property namebyte[] getBinaryProperty(String name)
name - property namevoid setProperty(String name, String value)
name - property namevalue - the valuevoid setBooleanProperty(String name, boolean value)
name - property namevalue - the valuevoid setIntegerProperty(String name, int value)
name - property namevalue - the valuevoid setBinaryProperty(String name, byte[] data)
name - property namedata - the valueString removeProperty(String name)
name - property namePropertiesList getList(String name)
name - property namePropertiesValues getValues(String name)
name - property namevoid remove(String name)
name - property nameorg.json.JSONObject toJSON()
throws org.json.JSONException
org.json.JSONException - parsing exceptionvoid updateFromJSON(org.json.JSONObject array)
throws org.json.JSONException
array - json valueorg.json.JSONException - parsing exceptionCopyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.