- java.lang.Object
-
- org.mal_lang.langspec.builders.MetaBuilder
-
-
Constructor Summary
Constructors Constructor Description MetaBuilder()
Constructs a newMetaBuilder
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaBuilder
addEntry(String key, String value)
Adds an entry to thisMetaBuilder
object.MetaBuilder
fromJson(JsonObject jsonMeta)
Adds entries to thisMetaBuilder
from aJsonObject
.Map<String,String>
getEntries()
Returns all entries in thisMetaBuilder
object.
-
-
-
Method Detail
-
getEntries
public Map<String,String> getEntries()
Returns all entries in thisMetaBuilder
object.- Returns:
- all entries in this
MetaBuilder
object - Since:
- 1.0.0
-
addEntry
public MetaBuilder addEntry(String key, String value)
Adds an entry to thisMetaBuilder
object.- Parameters:
key
- the key of the entryvalue
- the value of the entry- Returns:
- this
MetaBuilder
object - Throws:
NullPointerException
- ifkey
orvalue
isnull
IllegalArgumentException
- ifkey
is not a valid identifier- Since:
- 1.0.0
-
fromJson
public MetaBuilder fromJson(JsonObject jsonMeta)
Adds entries to thisMetaBuilder
from aJsonObject
.- Parameters:
jsonMeta
- theJsonObject
- Returns:
- this
MetaBuilder
object - Throws:
NullPointerException
- ifjsonMeta
isnull
- Since:
- 1.0.0
-
-