public class JsonWrapper extends DelegatingParser implements JsonNode
| Constructor and Description | 
|---|
JsonWrapper()
Constructs a new JsonWrapper. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getJsonArrayIndex()
Returns the index of this node in its parent array, or -1 if not applicable
 (i.e. 
 | 
String | 
getJsonName()
Returns the JSON field name. 
 | 
char | 
getJsonType()
Returns the type of node. 
 | 
boolean | 
isJsonArray()
Returns whether this node is a JSON array. 
 | 
boolean | 
isNillable()
Returns whether this node may be explicitly set to null. 
 | 
boolean | 
isOptional()
Returns whether this node must exist during unmarshalling. 
 | 
boolean | 
marshal(MarshallingContext context)
Marshals a record. 
 | 
boolean | 
matches(UnmarshallingContext context)
Returns whether this parser and its children match a record
 being unmarshalled. 
 | 
void | 
setJsonArray(boolean jsonArray)  | 
void | 
setJsonArrayIndex(int jsonArrayIndex)  | 
void | 
setJsonName(String jsonName)  | 
void | 
setJsonType(char jsonType)  | 
void | 
setNillable(boolean nillable)  | 
void | 
setOptional(boolean optional)  | 
protected void | 
toParamString(StringBuilder s)
Called by  
TreeNode.toString() to append node parameters to the output. | 
boolean | 
unmarshal(UnmarshallingContext context)
Unmarshals a record. 
 | 
clearValue, getParser, getSize, getValue, hasContent, isIdentifier, setValueisSupportedChildregisterLocalsadd, clone, find, getChildren, getFirst, getName, isDescendant, iterator, print, print, setName, size, sort, toString, updateReferencesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic boolean matches(UnmarshallingContext context)
Parsermatches in interface Parsermatches in class DelegatingParsercontext - the UnmarshallingContextpublic boolean unmarshal(UnmarshallingContext context)
Parserunmarshal in interface Parserunmarshal in class DelegatingParsercontext - the UnmarshallingContextpublic boolean marshal(MarshallingContext context) throws IOException
Parsermarshal in interface Parsermarshal in class DelegatingParsercontext - the MarshallingContextIOException - if an I/O error occurspublic String getJsonName()
JsonNodegetJsonName in interface JsonNodepublic void setJsonName(String jsonName)
public char getJsonType()
JsonNodeJsonNode.isJsonArray() is true, this method
 returns the component type of the array.getJsonType in interface JsonNodepublic void setJsonType(char jsonType)
public boolean isJsonArray()
JsonNodeisJsonArray in interface JsonNodepublic void setJsonArray(boolean jsonArray)
public int getJsonArrayIndex()
JsonNodegetJsonArrayIndex in interface JsonNodepublic void setJsonArrayIndex(int jsonArrayIndex)
public boolean isNillable()
JsonNodeisNillable in interface JsonNodepublic void setNillable(boolean nillable)
public boolean isOptional()
ParserisOptional in interface ParserisOptional in class DelegatingParserpublic void setOptional(boolean optional)
protected void toParamString(StringBuilder s)
TreeNodeTreeNode.toString() to append node parameters to the output.toParamString in class TreeNode<Component>s - the output to append