Class JSONResultFormatter
- java.lang.Object
-
- org.intermine.webservice.server.output.Formatter
-
- org.intermine.webservice.server.output.JSONFormatter
-
- org.intermine.webservice.server.output.JSONResultFormatter
-
- Direct Known Subclasses:
JSONObjectFormatter
,JSONTableFormatter
public abstract class JSONResultFormatter extends JSONFormatter
- Author:
- Alexis Kalderimis
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_MODEL_NAME
The key for the model namestatic java.lang.String
KEY_ROOT_CLASS
The key for the root classstatic java.lang.String
KEY_VIEWS
The key for the views-
Fields inherited from class org.intermine.webservice.server.output.JSONFormatter
KEY_CALLBACK, KEY_HEADER_OBJS, KEY_INTRO, KEY_KV_PAIRS, KEY_OUTRO, KEY_QUOTE, KEY_TIME, RESERVED_KEYS
-
-
Constructor Summary
Constructors Constructor Description JSONResultFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
formatAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.StringBuilder sb)
This differs from the JSONFormatter implementation in that it will output a representation of all keys in the attributes map.-
Methods inherited from class org.intermine.webservice.server.output.JSONFormatter
declarePrinted, formatFooter, formatHeader, formatResult
-
-
-
-
Field Detail
-
KEY_VIEWS
public static final java.lang.String KEY_VIEWS
The key for the views- See Also:
- Constant Field Values
-
KEY_ROOT_CLASS
public static final java.lang.String KEY_ROOT_CLASS
The key for the root class- See Also:
- Constant Field Values
-
KEY_MODEL_NAME
public static final java.lang.String KEY_MODEL_NAME
The key for the model name- See Also:
- Constant Field Values
-
-
Method Detail
-
formatAttributes
protected void formatAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.StringBuilder sb)
This differs from the JSONFormatter implementation in that it will output a representation of all keys in the attributes map.- Overrides:
formatAttributes
in classJSONFormatter
- Parameters:
attributes
- the attributes passed in from the containing outputsb
- The buffer containing the header so far.
-
-