public class instance extends contentbase
Modifier and Type | Field and Description |
---|---|
java.util.Map<classdesc,java.util.List<content>> |
annotations
Object annotation data.
|
classdesc |
classdesc
Class description for this instance.
|
java.util.Map<classdesc,java.util.Map<field,java.lang.Object>> |
fielddata
Collection of field data, organized by class description.
|
handle, isExceptionObject, type
Constructor and Description |
---|
instance()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJson(java.lang.String indentation,
java.util.Map<classdesc,java.util.Map<field,java.lang.Object>> fielddata,
boolean child)
Analogy for toString method; however, outputs its string in json formatting.
|
java.lang.String |
toString() |
getHandle, getType, isExceptionObject, setIsExceptionObject, validate
public java.util.Map<classdesc,java.util.Map<field,java.lang.Object>> fielddata
public classdesc classdesc
public java.lang.String toJson(java.lang.String indentation, java.util.Map<classdesc,java.util.Map<field,java.lang.Object>> fielddata, boolean child)
content
Analogy for toString method; however, outputs its string in json formatting. Returns the exact json representation of object with indentation.
Inherited by multiple classes via contentbase, often calls itself for another object
toJson
in interface content
toJson
in class contentbase
indentation
- starting indentation for json outputfielddata
- used when calling this method for inner instances
so the instance has info about its variables.
Instance info is saved in another content space than
info about its field variables, so it must be provided by parameter
to inner instanceschild
- tells that the instance is child of another because of indentationpublic java.lang.String toString()
toString
in class java.lang.Object