public class ConfigItemMapEntrySequence 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.
|
static ConfigItemMapEntrySequence |
createSequence() |
static ConfigItemMapEntrySequence |
createSequence(String name) |
String |
getName() |
boolean |
isEmpty() |
Iterator<ConfigBlock> |
iterator() |
ConfigBlock |
put(ConfigBlock block)
Put a block in this entry.
|
void |
remove(int i)
Remove the block at a given index.
|
String |
set(int i,
String value)
Set a value for an item at a given index
|
int |
size() |
public static ConfigItemMapEntrySequence createSequence()
public static ConfigItemMapEntrySequence createSequence(String name)
name - the name of the sequencepublic String getName()
getName in interface ConfigBlockpublic int size()
size in interface ConfigItemCollection<ConfigBlock>public boolean isEmpty()
isEmpty in interface ConfigItemCollection<ConfigBlock>public 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(int i)
i - the index.IndexOutOfBoundsException - if the index is out of range (index < 0 || index ≥ size())public 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 String set(int i, String value)
i - the indexvalue - the new valueIndexOutOfBoundsException - if the index is out of range (index < 0 || index ≥ size())public 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.