public class XmlParser extends Object
Constructor and Description |
---|
XmlParser(Namespace namespace,
ModelInstance modelInstance,
XmlTypesParser parser,
CoreTypeFactory coreTypeFactory) |
Modifier and Type | Method and Description |
---|---|
Document |
parseDocument(String xml) |
Object |
parseObject(Node parent,
Type type,
boolean isNillable,
String xmlNamespace,
String nodeName,
String xsdType)
Tries to parse object of the given type from parent element, using child elements
with the given xml namespace and node name.
|
RecordHolder |
parseRecordType(Node parent,
RecordType type) |
public XmlParser(Namespace namespace, ModelInstance modelInstance, XmlTypesParser parser, CoreTypeFactory coreTypeFactory)
namespace
- modelInstance
- parser
- coreTypeFactory
- public Document parseDocument(String xml) throws SAXException, IOException
xml
- xml to parseSAXException
IOException
public RecordHolder parseRecordType(Node parent, RecordType type) throws XmlParsingException
parent
- type
- XmlParsingException
public Object parseObject(Node parent, Type type, boolean isNillable, String xmlNamespace, String nodeName, String xsdType) throws XmlParsingException
parent
- type
- isNillable
- xmlNamespace
- nodeName
- xsdType
- XmlParsingException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.