public abstract class AbstractParser extends Object implements Parser
Modifier and Type | Field and Description |
---|---|
protected static String |
TYPE_DEFINITION |
protected static String |
VALUE_FIELD |
Constructor and Description |
---|
AbstractParser() |
Modifier and Type | Method and Description |
---|---|
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(InputStream stream) |
protected abstract com.fasterxml.jackson.core.JsonParser |
createParser(String dataString) |
protected <T> QName |
getExplicitType(PrimitiveXNode<T> primitive) |
XNode |
parse(File file) |
XNode |
parse(InputStream stream) |
XNode |
parse(String dataString) |
Collection<XNode> |
parseCollection(File file) |
Collection<XNode> |
parseCollection(InputStream stream) |
Collection<XNode> |
parseCollection(String dataString) |
XNode |
parseObject(com.fasterxml.jackson.core.JsonParser parser) |
String |
serialize(XNode node,
QName explicitType,
QName rootElement) |
protected abstract <T> boolean |
serializeExplicitType(PrimitiveXNode<T> primitive,
QName explicitType,
com.fasterxml.jackson.core.JsonGenerator generator) |
String |
serializeToString(RootXNode xnode) |
String |
serializeToString(XNode xnode,
QName rootElementName) |
protected abstract void |
writeExplicitType(QName explicitType,
com.fasterxml.jackson.core.JsonGenerator generator) |
protected static final String TYPE_DEFINITION
protected static final String VALUE_FIELD
protected abstract com.fasterxml.jackson.core.JsonParser createParser(String dataString) throws SchemaException
SchemaException
protected abstract com.fasterxml.jackson.core.JsonParser createParser(InputStream stream) throws SchemaException, IOException
SchemaException
IOException
protected abstract com.fasterxml.jackson.core.JsonParser createParser(File file) throws SchemaException, IOException
SchemaException
IOException
public abstract com.fasterxml.jackson.core.JsonGenerator createGenerator(StringWriter out) throws SchemaException
SchemaException
public Collection<XNode> parseCollection(File file) throws SchemaException, IOException
parseCollection
in interface Parser
SchemaException
IOException
public Collection<XNode> parseCollection(String dataString) throws SchemaException
parseCollection
in interface Parser
SchemaException
public Collection<XNode> parseCollection(InputStream stream) throws SchemaException, IOException
parseCollection
in interface Parser
SchemaException
IOException
public XNode parse(File file) throws SchemaException, IOException
parse
in interface Parser
SchemaException
IOException
public XNode parse(InputStream stream) throws SchemaException, IOException
parse
in interface Parser
SchemaException
IOException
public XNode parse(String dataString) throws SchemaException
parse
in interface Parser
SchemaException
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
protected abstract void writeExplicitType(QName explicitType, com.fasterxml.jackson.core.JsonGenerator generator) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
public String serialize(XNode node, QName explicitType, QName rootElement) throws SchemaException
SchemaException
protected abstract <T> boolean serializeExplicitType(PrimitiveXNode<T> primitive, QName explicitType, com.fasterxml.jackson.core.JsonGenerator generator) throws com.fasterxml.jackson.core.JsonGenerationException, IOException
com.fasterxml.jackson.core.JsonGenerationException
IOException
protected <T> QName getExplicitType(PrimitiveXNode<T> primitive)
public XNode parseObject(com.fasterxml.jackson.core.JsonParser parser) throws SchemaException
SchemaException
Copyright © 2016 evolveum. All rights reserved.