org.ini4j
Class BasicProfile
Object
org.ini4j.BasicMultiMap<K,V>
org.ini4j.CommonMultiMap<String,Profile.Section>
org.ini4j.BasicProfile
- All Implemented Interfaces:
- Serializable, Map<String,Profile.Section>, CommentedMap<String,Profile.Section>, MultiMap<String,Profile.Section>, Profile
- Direct Known Subclasses:
- BasicRegistry, Ini
public class BasicProfile
- extends CommonMultiMap<String,Profile.Section>
- implements Profile
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface Map |
Map.Entry<K,V> |
Method Summary |
Profile.Section |
add(String name)
|
void |
add(String section,
String option,
Object value)
|
|
as(Class<T> clazz)
|
|
as(Class<T> clazz,
String prefix)
|
String |
fetch(Object sectionName,
Object optionName)
|
|
fetch(Object sectionName,
Object optionName,
Class<T> clazz)
|
String |
get(Object sectionName,
Object optionName)
|
|
get(Object sectionName,
Object optionName,
Class<T> clazz)
|
String |
getComment()
|
String |
put(String sectionName,
String optionName,
Object value)
|
String |
remove(Object sectionName,
Object optionName)
|
Profile.Section |
remove(Profile.Section section)
|
void |
setComment(String value)
|
Methods inherited from class org.ini4j.BasicMultiMap |
add, add, containsKey, containsValue, entrySet, get, get, getAll, isEmpty, keySet, length, put, put, putAll, size, toString, values |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
BasicProfile
public BasicProfile()
BasicProfile
public BasicProfile(boolean treeMode,
boolean propertyFirstUpper)
getComment
public String getComment()
- Specified by:
getComment
in interface Profile
setComment
public void setComment(String value)
- Specified by:
setComment
in interface Profile
add
public Profile.Section add(String name)
- Specified by:
add
in interface Profile
add
public void add(String section,
String option,
Object value)
- Specified by:
add
in interface Profile
as
public <T> T as(Class<T> clazz)
- Specified by:
as
in interface Profile
as
public <T> T as(Class<T> clazz,
String prefix)
- Specified by:
as
in interface Profile
fetch
public String fetch(Object sectionName,
Object optionName)
- Specified by:
fetch
in interface Profile
fetch
public <T> T fetch(Object sectionName,
Object optionName,
Class<T> clazz)
- Specified by:
fetch
in interface Profile
get
public String get(Object sectionName,
Object optionName)
- Specified by:
get
in interface Profile
get
public <T> T get(Object sectionName,
Object optionName,
Class<T> clazz)
- Specified by:
get
in interface Profile
put
public String put(String sectionName,
String optionName,
Object value)
- Specified by:
put
in interface Profile
remove
public Profile.Section remove(Profile.Section section)
- Specified by:
remove
in interface Profile
remove
public String remove(Object sectionName,
Object optionName)
- Specified by:
remove
in interface Profile
Copyright © 2011. All Rights Reserved.