public interface PropertiesList
| Modifier and Type | Method and Description |
|---|---|
void |
addBinaryProperty(byte[] value)
Adds a new byte array property
|
void |
addBooleanProperty(boolean value)
Adds a new boolean property
|
void |
addIntegerProperty(int value)
Adds a new integer property
|
PropertiesList |
addList()
Adds a new sub list in the list
|
void |
addProperty(String value)
Adds a new string property
|
PropertiesValues |
addValues()
Adds a new structured values in the list
|
byte[] |
getBinaryProperty(int index)
Gets the byte array value at the specified index
|
Boolean |
getBooleanProperty(int index)
Gets the boolean value at the specified index
|
Integer |
getIntegerProperty(int index)
Gets the integer value at the specified index
|
PropertiesList |
getList(int index)
Get sub list at specified index
|
String |
getProperty(int index)
Gets the string value at the specified index
|
int |
getSize()
Gets the size if this list
|
PropertiesValues |
getValues(int index)
Get structured values at specified index
|
void |
setBinaryProperty(int index,
byte[] value)
Modifies the property at the specified index
|
void |
setBooleanProperty(int index,
boolean value)
Modifies the property at the specified index
|
void |
setIntegerProperty(int index,
int value)
Modifies the property at the specified index
|
void |
setProperty(int index,
String value)
Modifies the property at the specified index
|
org.json.JSONArray |
toJSON()
Convert to JSON array
|
void |
updateFromJSON(org.json.JSONArray array)
Import from JSON array
|
int getSize()
String getProperty(int index)
index - property indexvoid setProperty(int index,
String value)
index - property indexvalue - the valuevoid addProperty(String value)
value - the valueBoolean getBooleanProperty(int index)
index - property indexvoid setBooleanProperty(int index,
boolean value)
index - property indexvalue - the valuevoid addBooleanProperty(boolean value)
value - the valueInteger getIntegerProperty(int index)
index - property indexvoid setIntegerProperty(int index,
int value)
index - property indexvalue - the valuevoid addIntegerProperty(int value)
value - the valuebyte[] getBinaryProperty(int index)
index - property indexvoid setBinaryProperty(int index,
byte[] value)
index - property indexvalue - the valuevoid addBinaryProperty(byte[] value)
value - the valuePropertiesValues getValues(int index)
index - property indexPropertiesValues addValues()
PropertiesList getList(int index)
index - property indexPropertiesList addList()
org.json.JSONArray toJSON()
throws org.json.JSONException
org.json.JSONException - parsing exceptionvoid updateFromJSON(org.json.JSONArray array)
throws org.json.JSONException
array - json valueorg.json.JSONException - parsing exceptionCopyright © 2004–2021 Jahia Solutions Group SA. All rights reserved.