|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.inria.ns.reflex.xml.json.Factory
public class Factory
Build XML-aware JSON objects.
Handler| Constructor Summary | |
|---|---|
Factory()
|
|
| Method Summary | |
|---|---|
Object |
newJSONArray(JSONContext context)
Create an XComponent as a JSON array. |
Object |
newJSONBoolean(JSONContext context,
boolean bool)
Return a boolean object. |
Object |
newJSONComment(JSONContext context,
String comment)
Return an XML comment. |
Object |
newJSONDocument(JSONContext context)
Create an XComponent as a JSON document. |
Object |
newJSONNull(JSONContext context)
Return null. |
Object |
newJSONNumber(JSONContext context,
Number number)
Return the number as-is. |
Object |
newJSONObject(JSONContext context)
Create an XComponent as a JSON object. |
Object |
newJSONString(JSONContext context,
String string)
Return the string as-is. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Factory()
| Method Detail |
|---|
public Object newJSONDocument(JSONContext context)
newJSONDocument in interface JSONFactoryparser - The JSON parser.
XComponent,
JSONNames.JSON_DOCUMENTpublic Object newJSONArray(JSONContext context)
newJSONArray in interface JSONFactoryparser - The JSON parser.
XComponent,
JSONNames.JSON_ARRAYpublic Object newJSONObject(JSONContext context)
newJSONObject in interface JSONFactoryparser - The JSON parser.
XComponent,
JSONNames.JSON_OBJECTpublic Object newJSONNull(JSONContext context)
null.
newJSONNull in interface JSONFactoryparser - The JSON parser.
null
public Object newJSONNumber(JSONContext context,
Number number)
newJSONNumber in interface JSONFactoryparser - The JSON parser.number - The number.
NumberOperator.parseNumber(String)
public Object newJSONString(JSONContext context,
String string)
newJSONString in interface JSONFactoryparser - The JSON parser.string - The string.
public Object newJSONBoolean(JSONContext context,
boolean bool)
newJSONBoolean in interface JSONFactoryparser - The JSON parser.bool - The boolean.
public Object newJSONComment(JSONContext context,
String comment)
newJSONComment in interface JSONFactoryparser - The JSON parser.comment - The comment.
Comment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||