public class DeepSortNode extends Object
| Constructor and Description |
|---|
DeepSortNode(DeepSortNode parent,
String key,
boolean isArray,
TreeSet<String> possibleSortKeyNames) |
DeepSortNode(TreeSet<String> possibleSortKeyNames)
Creates a root node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addKeySignature(org.json.JSONObject obj)
For an array element node, this will create a key signature for the specified object
and maintain a count of how many times we see that signature for all of the objects
in an array.
|
void |
addPrimitive(String key) |
DeepSortNode |
arrayElement() |
void |
fullHierarchy(StringBuilder sb) |
boolean |
isArray() |
String |
path() |
void |
pathAndKeys(StringBuilder sb) |
public DeepSortNode(DeepSortNode parent, String key, boolean isArray, TreeSet<String> possibleSortKeyNames)
public boolean isArray()
public DeepSortNode arrayElement()
public String path()
public void addKeySignature(org.json.JSONObject obj)
obj - the object to be analyzed.public void addPrimitive(String key)
public void fullHierarchy(StringBuilder sb)
public void pathAndKeys(StringBuilder sb)
Copyright © 2023. All rights reserved.