public class VaultModel extends Object
Constructor and Description |
---|
VaultModel() |
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Get any value from the map by key
|
Boolean |
getBoolean(String key)
Get any value from the map by key as Boolean
|
List<String> |
getFieldNames() |
Integer |
getInteger(String key)
Get any value from the map by key as Integer
|
List<Integer> |
getListInteger(String key)
Get any value from the map by key as List<Integer%gt;
|
List<Long> |
getListLong(String key)
Get any value from the map by key as List<Long%gt;
|
List<String> |
getListString(String key)
Get any value from the map by key as List<String%gt;
|
Long |
getLong(String key)
Get any value from the map by key as Long
|
String |
getString(String key)
Get any value from the map by key as String
|
Map<String,Object> |
getVaultModelData()
Get all model data
|
void |
set(String key,
Object value)
Add any value to the map by key/value
|
void |
setVaultModelData(Map<String,Object> keyValueData)
Set all model data
|
org.json.JSONObject |
toJSONObject()
Converts the existing object into a JSONObject
|
String |
toJsonString()
Converts the existing object into a Json String
|
Map<String,Object> |
toMap()
Converts the existing object into a Map of String/Object
|
Map<String,Object> |
toMap(boolean convertArrayToString)
Converts the existing object into a Map of String/Object
|
public Map<String,Object> getVaultModelData()
public void setVaultModelData(Map<String,Object> keyValueData)
keyValueData
- Map of model datapublic Object get(String key)
key
- field name (Vault name format: example_field__c)public void set(String key, Object value)
key
- field name (Vault name format: example_field__c)value
- field valuepublic Boolean getBoolean(String key)
key
- field name (Vault name format: example_field__c)public Integer getInteger(String key)
key
- field name (Vault name format: example_field__c)public List<Integer> getListInteger(String key)
key
- field name (Vault name format: example_field__c)public List<String> getListString(String key)
key
- field name (Vault name format: example_field__c)public List<Long> getListLong(String key)
key
- field name (Vault name format: example_field__c)public Long getLong(String key)
key
- field name (Vault name format: example_field__c)public String getString(String key)
key
- field name (Vault name format: example_field__c)public Map<String,Object> toMap()
public Map<String,Object> toMap(boolean convertArrayToString)
convertArrayToString
- when true, ArrayList of String will be converted to CSV valuespublic String toJsonString()
public org.json.JSONObject toJSONObject()
Copyright © 2021. All rights reserved.