public class OAYamlReader extends Object
OAJsonWriter
Constructor and Description |
---|
OAYamlReader(String rootObjectName,
String rootPropertyName,
String rootPropertyName2) |
Modifier and Type | Method and Description |
---|---|
String |
convertToXML(String text,
Class rootClass) |
protected void |
endObject(OAObject obj,
boolean hasParent) |
protected String |
getClassName(String className) |
protected String |
getPropertyName(OAObject obj,
String propName) |
protected Object |
getValue(OAObject obj,
String name,
Object value) |
Object[] |
parse(String yaml,
Class rootClass) |
public Object[] parse(String yaml, Class rootClass)
rootClass
- class for the root object. If it is a Hub, then it needs to be the OAObjectClass of the Hub.
param rootPropertyName name of property for top level values in yamlprotected void endObject(OAObject obj, boolean hasParent)
Copyright © 1999–2019 ViaOA. All rights reserved.