Package org.ini4j
Class BasicRegistry
- Object
-
- org.ini4j.BasicMultiMap<K,V>
-
- org.ini4j.CommonMultiMap<String,Profile.Section>
-
- org.ini4j.BasicProfile
-
- org.ini4j.BasicRegistry
-
- All Implemented Interfaces:
Serializable
,Map<String,Profile.Section>
,CommentedMap<String,Profile.Section>
,MultiMap<String,Profile.Section>
,Profile
,Registry
- Direct Known Subclasses:
Reg
public class BasicRegistry extends BasicProfile implements Registry
- 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
-
Nested classes/interfaces inherited from interface org.ini4j.Registry
Registry.Hive, Registry.Key, Registry.Type
-
-
Field Summary
-
Fields inherited from interface org.ini4j.Profile
PATH_SEPARATOR
-
Fields inherited from interface org.ini4j.Registry
ESCAPE_CHAR, FILE_ENCODING, KEY_SEPARATOR, LINE_SEPARATOR, TYPE_SEPARATOR, VERSION
-
-
Constructor Summary
Constructors Constructor Description BasicRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Registry.Key
add(String name)
Registry.Key
get(Object key)
Registry.Key
get(Object key, int index)
String
getVersion()
Registry.Key
put(String key, Profile.Section value)
Registry.Key
put(String key, Profile.Section value, int index)
Registry.Key
remove(Object key)
Registry.Key
remove(Object key, int index)
Registry.Key
remove(Profile.Section section)
void
setVersion(String value)
-
Methods inherited from class org.ini4j.BasicProfile
add, as, as, fetch, fetch, get, get, getComment, put, remove, setComment
-
Methods inherited from class org.ini4j.CommonMultiMap
clear, getComment, putAll, putComment, removeComment
-
Methods inherited from class org.ini4j.BasicMultiMap
add, add, containsKey, containsValue, entrySet, getAll, isEmpty, keySet, length, 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
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceRegistry
-
setVersion
public void setVersion(String value)
- Specified by:
setVersion
in interfaceRegistry
-
add
public Registry.Key add(String name)
- Specified by:
add
in interfaceProfile
- Overrides:
add
in classBasicProfile
-
get
public Registry.Key get(Object key)
- Specified by:
get
in interfaceMap<String,Profile.Section>
- Specified by:
get
in interfaceRegistry
- Overrides:
get
in classBasicMultiMap<String,Profile.Section>
-
get
public Registry.Key get(Object key, int index)
- Specified by:
get
in interfaceMultiMap<String,Profile.Section>
- Specified by:
get
in interfaceRegistry
- Overrides:
get
in classBasicMultiMap<String,Profile.Section>
-
put
public Registry.Key put(String key, Profile.Section value)
- Specified by:
put
in interfaceMap<String,Profile.Section>
- Specified by:
put
in interfaceRegistry
- Overrides:
put
in classBasicMultiMap<String,Profile.Section>
-
put
public Registry.Key put(String key, Profile.Section value, int index)
- Specified by:
put
in interfaceMultiMap<String,Profile.Section>
- Specified by:
put
in interfaceRegistry
- Overrides:
put
in classBasicMultiMap<String,Profile.Section>
-
remove
public Registry.Key remove(Profile.Section section)
- Specified by:
remove
in interfaceProfile
- Overrides:
remove
in classBasicProfile
-
remove
public Registry.Key remove(Object key)
- Specified by:
remove
in interfaceMap<String,Profile.Section>
- Specified by:
remove
in interfaceRegistry
- Overrides:
remove
in classCommonMultiMap<String,Profile.Section>
-
remove
public Registry.Key remove(Object key, int index)
- Specified by:
remove
in interfaceMultiMap<String,Profile.Section>
- Specified by:
remove
in interfaceRegistry
- Overrides:
remove
in classCommonMultiMap<String,Profile.Section>
-
-