public interface PropertyFileData extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String sectionName,
String paramName) |
boolean |
containsSection(String sectionName) |
Set<Map.Entry<String,Map<String,Object>>> |
entrySet() |
Locale |
getLocale()
Gets the locale associated with this data if any
|
Set<String> |
getPublicSectionNames()
Returns an unmodifiable map of section names that are "namespaced"
in that they are publicly accessible and versioned.
|
Map<String,Object> |
getSection(String sectionName)
Returns an unmodifiable map of all the values for a particular sectionName.
|
Set<String> |
getSectionNames()
Returns an unmodifiable set of section names in the data.
|
Object |
put(String sectionName,
String paramName,
Object value)
Adds a value to the data.
|
Object |
remove(String sectionName,
String paramName)
Removes the value for a section/parameter key,
|
void |
removeSection(String sectionName)
Removes all properties for the given section name.
|
void |
setSectionAsPublic(String section)
The set of "public" sections.
|
void |
shareKeys(SharedKeyMap<String,SharedKeyMap<String,Object>> seedKeyMap)
If this implementation supports sharing of section and parameter names,
then this should allow a non-shared representation to "hop" onto the sharing bandwagon.
|
Map<String,Object> getSection(String sectionName)
null.Set<Map.Entry<String,Map<String,Object>>> entrySet()
Object put(String sectionName, String paramName, Object value)
Object remove(String sectionName, String paramName)
void removeSection(String sectionName)
Set<String> getSectionNames()
Set<String> getPublicSectionNames()
void setSectionAsPublic(String section)
section - the section to mark as "public"boolean containsSection(String sectionName)
contains(String, String)boolean contains(String sectionName, String paramName)
containsSection(String)Locale getLocale()
void shareKeys(SharedKeyMap<String,SharedKeyMap<String,Object>> seedKeyMap)
This is not always supported by implementations. If the implementation doesn't support it, it should be considered a no-op.
SharedKeyMapPropertyFileDataCopyright (c) 2016-2017, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE.txt file in the repository.