org.ini4j
Class BasicProfile

Object
  extended by org.ini4j.BasicMultiMap<K,V>
      extended by org.ini4j.CommonMultiMap<String,Profile.Section>
          extended by 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 org.ini4j.Profile
Profile.Section
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from interface org.ini4j.Profile
PATH_SEPARATOR
 
Constructor Summary
BasicProfile()
           
BasicProfile(boolean treeMode, boolean propertyFirstUpper)
           
 
Method Summary
 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)
           
 String 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ini4j.MultiMap
add, add, get, getAll, length, put, putAll, remove
 
Methods inherited from interface org.ini4j.CommentedMap
getComment, putComment, removeComment
 
Methods inherited from interface Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

BasicProfile

public BasicProfile()

BasicProfile

public BasicProfile(boolean treeMode,
                    boolean propertyFirstUpper)
Method Detail

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.