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.Sectionadd(String name)voidadd(String section, String option, Object value)<T> Tas(Class<T> clazz)<T> Tas(Class<T> clazz, String prefix)Stringfetch(Object sectionName, Object optionName)<T> Tfetch(Object sectionName, Object optionName, Class<T> clazz)Stringget(Object sectionName, Object optionName)<T> Tget(Object sectionName, Object optionName, Class<T> clazz)StringgetComment()Stringput(String sectionName, String optionName, Object value)booleanremove(Object sectionName, Object optionName)Profile.Sectionremove(Profile.Section section)voidsetComment(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:
getCommentin interfaceProfile
-
setComment
public void setComment(String value)
- Specified by:
setCommentin 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:
removein interfaceMap<String,Profile.Section>- Specified by:
removein interfaceProfile
-
-