public final class MapBuilder extends Object
Constructor and Description |
---|
MapBuilder() |
Modifier and Type | Method and Description |
---|---|
XQMap |
finish()
Returns the resulting map and invalidates the internal reference.
|
void |
put(Item key,
Value value)
Adds a key/value pair to the map.
|
void |
put(String key,
String value)
Adds key/value strings to the map.
|
void |
put(String key,
Value value)
Adds a key string and a value to the map.
|
public void put(Item key, Value value) throws QueryException
key
- keyvalue
- valueQueryException
- query exceptionpublic void put(String key, Value value) throws QueryException
key
- keyvalue
- valueQueryException
- query exceptionpublic void put(String key, String value) throws QueryException
key
- keyvalue
- value (can be null
)QueryException
- query exceptionpublic XQMap finish()
Copyright © 2005–2023 BaseX Team. All rights reserved.