public class ConfigItemMapEntrySet extends Object implements ConfigItemMapEntry
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConfigBlock block)
Add a block to this entry.
|
boolean |
add(String name,
String type,
String value)
Add an ConfigItem to this entry.
|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
boolean |
contains(String name) |
static ConfigItemMapEntrySet |
createSet() |
static ConfigItemMapEntrySet |
createSet(String name) |
ConfigBlock |
getByName(String name) |
String |
getName() |
boolean |
isEmpty() |
Iterator<ConfigBlock> |
iterator() |
ConfigBlock |
put(ConfigBlock block)
Put a block in this entry.
|
void |
remove(Object o) |
String |
set(String name,
String value)
Set a value for an item with a given name
|
int |
size() |
public static ConfigItemMapEntrySet createSet()
public static ConfigItemMapEntrySet createSet(String name)
name - the name of the hashtablepublic String getName()
getName in interface ConfigBlockpublic int size()
size in interface ConfigItemCollection<ConfigBlock>public boolean isEmpty()
isEmpty in interface ConfigItemCollection<ConfigBlock>public boolean contains(String name)
name - the name to look forpublic boolean add(ConfigBlock block)
ConfigItemMapEntryadd in interface ConfigItemMapEntryblock - the block to add to this entry. May throwpublic ConfigBlock put(ConfigBlock block)
ConfigItemMapEntryput in interface ConfigItemMapEntryblock - the block to add to this entry. May throwpublic void remove(Object o)
o - the block to removepublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedpublic Iterator<ConfigBlock> iterator()
iterator in interface ConfigItemCollection<ConfigBlock>public ConfigBlock getByName(String name)
name - the name of the config blockpublic String set(String name, String value)
name - the name of the itemvalue - the new valuepublic boolean add(String name, String type, String value)
ConfigItemMapEntryadd(new ConfigItem(name, type, value)).add in interface ConfigItemMapEntryname - the name of the itemtype - the type of the itemvalue - the value of the itemCopyright © 2016–2021. All rights reserved.