Package org.imixs.workflow.util
Klasse ImixsJSONBuilder
java.lang.Object
org.imixs.workflow.util.ImixsJSONBuilder
The ImixsJSONBuilder is an utility class to generate a typed json string from
an Imixs ItemCollection.
The result can be converted back into a ItemCollection by using the ImixsJSONParser class.
- Autor:
- rsoika
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic final Stringbuild(ItemCollection workitem) This method builds a typed JSON output stream from a Imixs ItemCollection.
-
Felddetails
-
ISO8601DATEFORMAT
- Siehe auch:
-
-
Konstruktordetails
-
ImixsJSONBuilder
public ImixsJSONBuilder()
-
-
Methodendetails
-
build
public static final String build(ItemCollection workitem) throws ParseException, UnsupportedEncodingException This method builds a typed JSON output stream from a Imixs ItemCollection. Example Output:{ "item":[ {"name":"$isauthor","value":{"@type":"xs:boolean","$":"true"}}, {"name":"$readaccess","value":{"@type":"xs:string","$":"Anna"}}, {"name":"txtmessage","value":{"@type":"xs:string","$":"worklist"}}, {"name":"txtlog","value":[ {"@type":"xs:string","$":"A"}, {"@type":"xs:string","$":"B"}, {"@type":"xs:string","$":"C"}] }, {"name":"$eventid","value":{"@type":"xs:int","$":"0"}} ] }- Parameter:
worktiem- - ItemCollection to be translated into JSON- Gibt zurück:
- a JSON string
- Löst aus:
ParseExceptionUnsupportedEncodingException
-