public abstract class JsonProperties extends Object
Modifier and Type | Method and Description |
---|---|
void |
addProp(String name,
JsonNode value)
Adds a property with the given name name and
value value.
|
void |
addProp(String name,
String value)
Adds a property with the given name name and
value value.
|
JsonNode |
getJsonProp(String name)
Returns the value of the named property in this schema.
|
Map<String,JsonNode> |
getJsonProps()
Return the defined properties as an unmodifieable Map.
|
String |
getProp(String name)
Returns the value of the named, string-valued property in this schema.
|
Map<String,String> |
getProps()
Deprecated.
|
public String getProp(String name)
public JsonNode getJsonProp(String name)
public void addProp(String name, String value)
name
- The name of the property to addvalue
- The value for the property to addpublic void addProp(String name, JsonNode value)
name
- The name of the property to addvalue
- The value for the property to add@Deprecated public Map<String,String> getProps()
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.