public class YamlMapping extends YamlElement implements YamlDocument
| Constructor and Description |
|---|
YamlMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(boolean element) |
void |
addElement(Number element) |
void |
addElement(String element) |
void |
addElement(YamlElement element) |
void |
addEntry(YamlEntry entry) |
void |
deleteElement(int element) |
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 element) |
void |
setElement(int item,
Number element) |
void |
setElement(int item,
String element) |
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 addEntry(YamlEntry entry)
public boolean deleteEntry(String key)
deleteEntry in interface YamlDocumentpublic YamlEntry getEntry(String key) throws YamlException
getEntry in interface YamlDocumentYamlExceptionpublic YamlEntry getEntry(int index) throws YamlException
getEntry in interface YamlDocumentYamlExceptionpublic void emitEvent(Emitter emitter, YamlConfig.WriteConfig config) throws EmitterException, IOException
emitEvent in class YamlElementEmitterExceptionIOExceptionpublic 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 YamlElement getElement(int item) throws YamlException
getElement in interface YamlDocumentYamlExceptionpublic void deleteElement(int element)
throws YamlException
deleteElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
boolean element)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
Number element)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
String element)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void setElement(int item,
YamlElement element)
throws YamlException
setElement in interface YamlDocumentYamlExceptionpublic void addElement(boolean element)
throws YamlException
addElement in interface YamlDocumentYamlExceptionpublic void addElement(Number element) throws YamlException
addElement in interface YamlDocumentYamlExceptionpublic void addElement(String element) throws YamlException
addElement in interface YamlDocumentYamlExceptionpublic void addElement(YamlElement element) throws YamlException
addElement in interface YamlDocumentYamlExceptionCopyright © 2020. All rights reserved.