- java.lang.Object
-
- org.mal_lang.langspec.builders.MetaBuilder
-
-
Constructor Summary
Constructors Constructor Description MetaBuilder()Constructs a newMetaBuilderobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaBuilderaddEntry(String key, String value)Adds an entry to thisMetaBuilderobject.MetaBuilderfromJson(JsonObject jsonMeta)Adds entries to thisMetaBuilderfrom aJsonObject.Map<String,String>getEntries()Returns all entries in thisMetaBuilderobject.
-
-
-
Method Detail
-
getEntries
public Map<String,String> getEntries()
Returns all entries in thisMetaBuilderobject.- Returns:
- all entries in this
MetaBuilderobject - Since:
- 1.0.0
-
addEntry
public MetaBuilder addEntry(String key, String value)
Adds an entry to thisMetaBuilderobject.- Parameters:
key- the key of the entryvalue- the value of the entry- Returns:
- this
MetaBuilderobject - Throws:
NullPointerException- ifkeyorvalueisnullIllegalArgumentException- ifkeyis not a valid identifier- Since:
- 1.0.0
-
fromJson
public MetaBuilder fromJson(JsonObject jsonMeta)
Adds entries to thisMetaBuilderfrom aJsonObject.- Parameters:
jsonMeta- theJsonObject- Returns:
- this
MetaBuilderobject - Throws:
NullPointerException- ifjsonMetaisnull- Since:
- 1.0.0
-
-