Package 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 Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface org.ini4j.Profile
Profile.Section
-
-
Field Summary
-
Fields inherited from interface org.ini4j.Profile
PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description BasicProfile()
BasicProfile(boolean treeMode, boolean propertyFirstUpper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profile.Section
add(String name)
void
add(String section, String option, Object value)
<T> T
as(Class<T> clazz)
<T> T
as(Class<T> clazz, String prefix)
String
fetch(Object sectionName, Object optionName)
<T> T
fetch(Object sectionName, Object optionName, Class<T> clazz)
String
get(Object sectionName, Object optionName)
<T> T
get(Object sectionName, Object optionName, Class<T> clazz)
String
getComment()
String
put(String sectionName, String optionName, Object value)
boolean
remove(Object sectionName, Object optionName)
Profile.Section
remove(Profile.Section section)
void
setComment(String value)
-
Methods inherited from class org.ini4j.CommonMultiMap
clear, getComment, putAll, putComment, remove, remove, removeComment
-
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ini4j.CommentedMap
getComment, putComment, removeComment
-
-
-
-
Method Detail
-
getComment
public String getComment()
- Specified by:
getComment
in interfaceProfile
-
setComment
public void setComment(String value)
- Specified by:
setComment
in interfaceProfile
-
add
public Profile.Section add(String name)
-
add
public void add(String section, String option, Object value)
-
fetch
public String fetch(Object sectionName, Object optionName)
-
fetch
public <T> T fetch(Object sectionName, Object optionName, Class<T> clazz)
-
get
public String get(Object sectionName, Object optionName)
-
get
public <T> T get(Object sectionName, Object optionName, Class<T> clazz)
-
put
public String put(String sectionName, String optionName, Object value)
-
remove
public Profile.Section remove(Profile.Section section)
-
remove
public boolean remove(Object sectionName, Object optionName)
- Specified by:
remove
in interfaceMap<String,Profile.Section>
- Specified by:
remove
in interfaceProfile
-
-