public class YamlSequence extends YamlElement implements YamlDocument
| Constructor and Description |
|---|
YamlSequence() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(boolean value) |
void |
addElement(Number value) |
void |
addElement(String value) |
void |
addElement(YamlElement element) |
void |
deleteElement(int item) |
boolean |
deleteEntry(String key) |
void |
emitEvent(Emitter emitter,
YamlConfig.WriteConfig config) |
YamlElement |
getElement(int item) |
YamlEntry |
getEntry(int index) |
YamlEntry |
getEntry(String key) |
void |
setElement(int item,
boolean value) |
void |
setElement(int item,
Number value) |
void |
setElement(int item,
String value) |
void |
setElement(int item,
YamlElement element) |
void |
setEntry(String key,
boolean value) |
void |
setEntry(String key,
Number value) |
void |
setEntry(String key,
String value) |
void |
setEntry(String key,
YamlElement value) |
int |
size() |
String |
toString() |
getAnchor, getTag, setAnchor, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTagpublic int size()
size in interface YamlDocumentpublic void addElement(YamlElement element)
addElement in interface YamlDocumentpublic void deleteElement(int item)
throws YamlException
deleteElement in interface YamlDocumentYamlExceptionpublic YamlElement getElement(int item) throws YamlException
getElement in interface YamlDocumentYamlExceptionpublic void emitEvent(Emitter emitter, YamlConfig.WriteConfig config) throws EmitterException, IOException
emitEvent in class YamlElementEmitterExceptionIOExceptionpublic YamlEntry getEntry(String key) throws YamlException
getEntry in interface YamlDocumentYamlExceptionpublic YamlEntry getEntry(int index) throws YamlException
getEntry in interface YamlDocumentYamlExceptionpublic boolean deleteEntry(String key) throws YamlException
deleteEntry in interface YamlDocumentYamlExceptionpublic void setEntry(String key, boolean value) throws YamlException
setEntry in interface YamlDocumentYamlExceptionpublic void setEntry(String key, Number value) throws YamlException
setEntry in interface YamlDocumentYamlExceptionpublic void setEntry(String key, String value) throws YamlException
setEntry in interface YamlDocumentYamlExceptionpublic void setEntry(String key, YamlElement value) throws YamlException
setEntry in interface YamlDocumentYamlExceptionpublic void setElement(int item,
boolean value)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
Number value)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
String value)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
YamlElement element)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void addElement(boolean value)
throws YamlException
addElement in interface YamlDocumentYamlExceptionpublic void addElement(Number value) throws YamlException
addElement in interface YamlDocumentYamlExceptionpublic void addElement(String value) throws YamlException
addElement in interface YamlDocumentYamlExceptionCopyright © 2020. All rights reserved.