raw| Modifier and Type | Method and Description |
|---|---|
Boolean |
bool(String key)
Boolean access.
|
Boolean |
boolOr(String key,
Boolean def)
Boolean access.
|
Double |
doub(String key)
Double access.
|
Double |
doubOr(String key,
Double def)
Double access.
|
static YamlMap |
from(Object... pairs)
Quick inline map creation.
|
Object |
get(String key)
Value access
|
boolean |
has(String key)
Check if mapping available for key
|
Integer |
integer(String key)
Integer access.
|
Integer |
intOr(String key,
Integer def)
Integer access.
|
Iterator<String> |
iterator()
Iterate over keys.
|
String |
key(int i)
Access key by index, order provided by
iterator(). |
YamlMap |
map(String key)
Access value as a YamlMap
|
YamlObject<?> |
obj(String key)
Access value as a Yaml wrapper.
|
YamlSeq |
seq(String key)
Access value as a YamlSeq
|
String |
str(String key)
String access.
|
String |
strOr(String key,
String def)
String access.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic YamlMap(Object obj)
obj - Wrapped MapIllegalArgumentException - Map is requiredpublic static YamlMap from(Object... pairs)
pairs - Key value pairspublic String str(String key)
key - public String strOr(String key, String def)
key - def - default if value not providedpublic Integer integer(String key)
key - public Integer intOr(String key, Integer def)
key - def - default if value not providedpublic Double doub(String key)
key - public Double doubOr(String key, Double def)
key - def - default if value not providedpublic Boolean bool(String key)
key - public Boolean boolOr(String key, Boolean def)
key - def - default if value not providedpublic boolean has(String key)
key - public YamlObject<?> obj(String key)
Wrappers are provided for Map and List
key - public YamlMap map(String key)
key - public YamlSeq seq(String key)
key - public String key(int i)
iterator().i - indexCopyright © 1996–2019 Geotools. All rights reserved.