Package org.ini4j
Class BasicProfile
- java.lang.Object
-
- org.ini4j.BasicMultiMap<K,V>
-
- org.ini4j.CommonMultiMap<java.lang.String,Profile.Section>
-
- org.ini4j.BasicProfile
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,Profile.Section>
,CommentedMap<java.lang.String,Profile.Section>
,MultiMap<java.lang.String,Profile.Section>
,Profile
- Direct Known Subclasses:
BasicRegistry
,Ini
public class BasicProfile extends CommonMultiMap<java.lang.String,Profile.Section> implements Profile
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K extends java.lang.Object,V extends java.lang.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(java.lang.String name)
void
add(java.lang.String section, java.lang.String option, java.lang.Object value)
<T> T
as(java.lang.Class<T> clazz)
<T> T
as(java.lang.Class<T> clazz, java.lang.String prefix)
java.lang.String
fetch(java.lang.Object sectionName, java.lang.Object optionName)
<T> T
fetch(java.lang.Object sectionName, java.lang.Object optionName, java.lang.Class<T> clazz)
java.lang.String
get(java.lang.Object sectionName, java.lang.Object optionName)
<T> T
get(java.lang.Object sectionName, java.lang.Object optionName, java.lang.Class<T> clazz)
java.lang.String
getComment()
java.lang.String
put(java.lang.String sectionName, java.lang.String optionName, java.lang.Object value)
boolean
remove(java.lang.Object sectionName, java.lang.Object optionName)
Profile.Section
remove(Profile.Section section)
void
setComment(java.lang.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 java.lang.String getComment()
- Specified by:
getComment
in interfaceProfile
-
setComment
public void setComment(java.lang.String value)
- Specified by:
setComment
in interfaceProfile
-
add
public Profile.Section add(java.lang.String name)
-
add
public void add(java.lang.String section, java.lang.String option, java.lang.Object value)
-
as
public <T> T as(java.lang.Class<T> clazz, java.lang.String prefix)
-
fetch
public java.lang.String fetch(java.lang.Object sectionName, java.lang.Object optionName)
-
fetch
public <T> T fetch(java.lang.Object sectionName, java.lang.Object optionName, java.lang.Class<T> clazz)
-
get
public java.lang.String get(java.lang.Object sectionName, java.lang.Object optionName)
-
get
public <T> T get(java.lang.Object sectionName, java.lang.Object optionName, java.lang.Class<T> clazz)
-
put
public java.lang.String put(java.lang.String sectionName, java.lang.String optionName, java.lang.Object value)
-
remove
public Profile.Section remove(Profile.Section section)
-
remove
public boolean remove(java.lang.Object sectionName, java.lang.Object optionName)
- Specified by:
remove
in interfacejava.util.Map<java.lang.String,Profile.Section>
- Specified by:
remove
in interfaceProfile
-
-