public class SapIDocXmlParserImpl extends AbstractSapXmlParser implements SapIDocXmlParser
ENCODED_CODE_DIGIT_START, ENCODED_SLASH_FOR_XML, logger
Constructor and Description |
---|
SapIDocXmlParserImpl() |
Modifier and Type | Method and Description |
---|---|
protected SapJcoClient |
getSapClient() |
String |
getXmlSchema(String sapObjectName,
String encoding,
MetadataLevel metadata) |
String |
iDocToXmlMetadata(String iDocType,
Character iDocVersion,
String encoding,
MetadataLevel metadata) |
void |
initialise(SapJcoClient sapClient) |
String |
sapObjectToXml(Object sapObject,
String encoding) |
protected void |
setSapClient(SapJcoClient sapClient) |
SapObject |
xmlToSapObject(Collection<InputStream> streams,
SapType type,
String objectName,
String encoding) |
SapObject |
xmlToSapObject(InputStream stream,
SapType type,
String encoding) |
SapObject |
xmlToSapObject(InputStream stream,
SapType type,
String objectName,
String encoding) |
cleanInvalidXmlChars, decodeSapObjectName, encodeSapObjectName, setLogger, writeAttribute, writeCharacters, writeEndDocument, writeEndElement, writeEndXsdAll, writeEndXsdAttribute, writeEndXsdComplexType, writeEndXsdElement, writeEndXsdExtension, writeEndXsdRestriction, writeEndXsdSequence, writeEndXsdSimpleContent, writeEndXsdSimpleType, writeStartDocument, writeStartElement, writeStartXsdAll, writeStartXsdAttribute, writeStartXsdComplexType, writeStartXsdElement, writeStartXsdElement, writeStartXsdElement, writeStartXsdExtension, writeStartXsdRestriction, writeStartXsdSequence, writeStartXsdSimpleContent, writeStartXsdSimpleType, writeXsdAttribute, writeXsdAttribute, writeXsdDocumentation, writeXsdEnumRestriction, writeXsdFixedAttribute, writeXsdMaxLengthRestriction
public void initialise(SapJcoClient sapClient)
initialise
in interface SapJcoXmlParser
public SapObject xmlToSapObject(InputStream stream, SapType type, String encoding) throws Exception
stream
- type
- encoding
- Exception
public SapObject xmlToSapObject(InputStream stream, SapType type, String objectName, String encoding) throws Exception
xmlToSapObject
in interface SapJcoXmlParser
stream
- type
- objectName
- encoding
- Exception
public SapObject xmlToSapObject(Collection<InputStream> streams, SapType type, String objectName, String encoding) throws Exception
xmlToSapObject
in interface SapJcoXmlParser
streams
- type
- objectName
- encoding
- Exception
public String sapObjectToXml(Object sapObject, String encoding) throws Exception
sapObjectToXml
in interface SapJcoXmlParser
sapObject
- encoding
- Exception
protected SapJcoClient getSapClient()
protected void setSapClient(SapJcoClient sapClient)
public String iDocToXmlMetadata(String iDocType, Character iDocVersion, String encoding, MetadataLevel metadata) throws Exception
iDocToXmlMetadata
in interface SapIDocXmlParser
Exception
public String getXmlSchema(String sapObjectName, String encoding, MetadataLevel metadata) throws Exception
getXmlSchema
in interface SapJcoXmlParser
metadata
- If the resulting XSD should declare BAPI metadata attributes. For DataSense is better to hide them so that DataMapper shows a clearer view.Exception
Copyright © 2016. All rights reserved.