public class DataShow extends ObjectId
Modifier and Type | Class and Description |
---|---|
static interface |
DataShow.ExcludeShowContent
If a Field is designated with this annotation then the content is not shown.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Queue<java.lang.Object> |
newInstances |
static java.lang.String |
sVersion
Version, history and license.
|
Modifier | Constructor and Description |
---|---|
private |
DataShow() |
Modifier and Type | Method and Description |
---|---|
private static void |
appendContent(java.lang.Object data,
java.lang.Appendable out) |
static void |
dataTree(java.lang.Object data,
java.lang.Appendable out,
int maxRecurs) |
static void |
dataTreeXml(java.lang.Object data,
java.lang.Appendable out,
int maxRecurs) |
private static boolean |
outData(int recurs,
int maxRecurs,
java.lang.Object data,
java.lang.Appendable out,
boolean bXML,
java.util.Map<java.lang.String,java.lang.Object> processedAlready)
Output of a complex data class.
|
private void |
outData(java.lang.Object data,
java.lang.Appendable out,
boolean bNoHash)
Output of a complex data class.
|
private void |
outDataShort(java.lang.Object data,
java.lang.Class<?> type,
java.lang.Appendable out)
Output to one element.
|
private void |
outField(java.lang.String sInfo,
java.lang.Object data,
java.lang.Class<?> type,
java.lang.reflect.Field field,
java.lang.Appendable out,
int recursiveCount) |
static void |
outHtml(java.lang.Object data,
java.lang.Appendable out)
Generates a html file which contains the description of all data contained in referred in the given data instance.
|
static void |
outHtml(java.lang.Object data,
java.lang.Appendable out,
boolean bNoHash)
Same as
outHtml(Object, Appendable) but content with or without hash is able to control |
(package private) static void |
outIndent(int recurs,
java.lang.Appendable out,
boolean bXml) |
private java.lang.String |
strData(java.lang.Object data,
boolean bNoHash) |
private static boolean |
XXXoutData(int recurs,
java.lang.String sName,
java.lang.Object dataField,
java.lang.Appendable out,
boolean bXML) |
allInstances, getIdFromHash, getPerHash, getPerId, instanceId, toStringNoHash
public static final java.lang.String sVersion
<
in the html. It should be presented with <
.
outData(Object, Appendable, boolean)
can decide whether the true hash code is shown
(for search the instance proper to a Object.toString()-output with @hash or a unique hash is shown for compare ability of 2 html files.j
#instanceId(Object)
. The advantage:
If the same data are used in a second session (repeated invocation of the same for example conversion process)
then the identification is the same. The hash code depends on the memory address, which depends on the situation
on the operation system. With them the generated html outputs are able to compare by a text difference tool.
With that intension the standard toString() output are changed, instead "type@address" "type@instanceId" is replaced.
org/vishia/jzcmd/JZcmdTester
.
java.util.Queue<java.lang.Object> newInstances
public static void dataTreeXml(java.lang.Object data, java.lang.Appendable out, int maxRecurs) throws java.io.IOException
java.io.IOException
public static void dataTree(java.lang.Object data, java.lang.Appendable out, int maxRecurs) throws java.io.IOException
java.io.IOException
private static boolean outData(int recurs, int maxRecurs, java.lang.Object data, java.lang.Appendable out, boolean bXML, java.util.Map<java.lang.String,java.lang.Object> processedAlready) throws java.io.IOException
recurs
- data
- out
- bXML
- java.io.IOException
public static void outHtml(java.lang.Object data, java.lang.Appendable out) throws java.io.IOException
data
- Any Object.out
- To writejava.io.IOException
public static void outHtml(java.lang.Object data, java.lang.Appendable out, boolean bNoHash) throws java.io.IOException
outHtml(Object, Appendable)
but content with or without hash is able to controldata
- out
- bNoHash
- true than a @ hash from toString() will be replaced by the internal id to save compare ability.java.io.IOException
private void outDataShort(java.lang.Object data, java.lang.Class<?> type, java.lang.Appendable out) throws java.io.IOException
data
- type
- out
- java.io.IOException
private void outData(java.lang.Object data, java.lang.Appendable out, boolean bNoHash) throws java.io.IOException
recurs
- data
- out
- bXML
- java.io.IOException
private java.lang.String strData(java.lang.Object data, boolean bNoHash)
private void outField(java.lang.String sInfo, java.lang.Object data, java.lang.Class<?> type, java.lang.reflect.Field field, java.lang.Appendable out, int recursiveCount) throws java.io.IOException
sName
- sType
- data
- If a field is given, then the data where the field is found, else the data itself.type
- Type of a reference or type of instance to show.field
- maybe nullout
- java.io.IOException
static void outIndent(int recurs, java.lang.Appendable out, boolean bXml) throws java.io.IOException
java.io.IOException
private static boolean XXXoutData(int recurs, java.lang.String sName, java.lang.Object dataField, java.lang.Appendable out, boolean bXML) throws java.io.IOException
java.io.IOException
private static void appendContent(java.lang.Object data, java.lang.Appendable out) throws java.io.IOException
java.io.IOException