Constructor and Description |
---|
AbstractParser() |
Modifier and Type | Method and Description |
---|---|
boolean |
canParse(File file) |
boolean |
canParse(String dataString) |
abstract com.fasterxml.jackson.core.JsonGenerator |
createGenerator(StringWriter out) |
protected abstract com.fasterxml.jackson.core.JsonParser |
createParser(File file) |
protected abstract com.fasterxml.jackson.core.JsonParser |
createParser(String dataString) |
XNode |
parse(File file) |
XNode |
parse(String dataString) |
XNode |
parseObject(com.fasterxml.jackson.core.JsonParser parser) |
String |
serializeToJson(XNode node,
QName rootElement) |
String |
serializeToString(RootXNode xnode) |
String |
serializeToString(XNode xnode,
QName rootElementName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
parse, parseCollection, parseCollection, parseCollection
public XNode parse(File file) throws SchemaException, IOException
parse
in interface Parser
SchemaException
IOException
protected abstract com.fasterxml.jackson.core.JsonParser createParser(String dataString) throws SchemaException
SchemaException
protected abstract com.fasterxml.jackson.core.JsonParser createParser(File file) throws SchemaException, IOException
SchemaException
IOException
public XNode parse(String dataString) throws SchemaException
parse
in interface Parser
SchemaException
public boolean canParse(File file) throws IOException
canParse
in interface Parser
IOException
public String serializeToString(XNode xnode, QName rootElementName) throws SchemaException
serializeToString
in interface Parser
SchemaException
public String serializeToString(RootXNode xnode) throws SchemaException
serializeToString
in interface Parser
SchemaException
public String serializeToJson(XNode node, QName rootElement) throws SchemaException
SchemaException
public XNode parseObject(com.fasterxml.jackson.core.JsonParser parser) throws SchemaException
SchemaException
public abstract com.fasterxml.jackson.core.JsonGenerator createGenerator(StringWriter out) throws SchemaException
SchemaException
Copyright © 2016 evolveum. All rights reserved.