private static class XmlRenderer.InspectorRenderer extends Object
Modifier and Type | Field and Description |
---|---|
private StringBuilder |
renderTarget |
Constructor and Description |
---|
InspectorRenderer(StringBuilder target) |
Modifier and Type | Method and Description |
---|---|
private void |
indent(int nestingLevel) |
private boolean |
isMap(com.yahoo.data.access.Inspector array)
Returns true if the given array represents a map - a list of pairs called "key" and "value"
|
private boolean |
isWeightedSetArrays(com.yahoo.data.access.Inspector array)
Returns true if the given array represents a weighted set,
as a list of tuples
|
private boolean |
isWeightedSetObjects(com.yahoo.data.access.Inspector array)
Returns true if the given array represents a weighted set,
as a list of pairs called "item" and "weight"
|
private void |
renderArray(com.yahoo.data.access.Inspector seq,
int nestingLevel) |
(package private) void |
renderInspector(com.yahoo.data.access.Inspector value,
int nestingLevel) |
private void |
renderMap(com.yahoo.data.access.Inspector sequence,
int nestingLevel) |
private void |
renderMapItem(com.yahoo.data.access.Inspector object,
int nestingLevel) |
private void |
renderMapOrArray(com.yahoo.data.access.Inspector sequence,
int nestingLevel) |
private void |
renderStruct(com.yahoo.data.access.Inspector object,
int nestingLevel) |
private void |
renderStructure(com.yahoo.data.access.Inspector structure,
int nestingLevel) |
private void |
renderWeightedSet(com.yahoo.data.access.Inspector seq,
int nestingLevel,
boolean nestedarray) |
private final StringBuilder renderTarget
InspectorRenderer(StringBuilder target)
void renderInspector(com.yahoo.data.access.Inspector value, int nestingLevel)
private void renderMapItem(com.yahoo.data.access.Inspector object, int nestingLevel)
private void renderStructure(com.yahoo.data.access.Inspector structure, int nestingLevel)
private void renderStruct(com.yahoo.data.access.Inspector object, int nestingLevel)
private void indent(int nestingLevel)
private void renderMap(com.yahoo.data.access.Inspector sequence, int nestingLevel)
private boolean isMap(com.yahoo.data.access.Inspector array)
private boolean isWeightedSetObjects(com.yahoo.data.access.Inspector array)
private boolean isWeightedSetArrays(com.yahoo.data.access.Inspector array)
private void renderMapOrArray(com.yahoo.data.access.Inspector sequence, int nestingLevel)
private void renderWeightedSet(com.yahoo.data.access.Inspector seq, int nestingLevel, boolean nestedarray)
private void renderArray(com.yahoo.data.access.Inspector seq, int nestingLevel)
Copyright © 2017. All rights reserved.