public abstract class AbstractSapXmlParser extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENCODED_CODE_DIGIT_START |
static String |
ENCODED_SLASH_FOR_XML |
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
AbstractSapXmlParser() |
Modifier and Type | Method and Description |
---|---|
protected String |
cleanInvalidXmlChars(String text,
String replacement)
From xml spec valid chars:
#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. |
protected String |
decodeSapObjectName(String name) |
protected String |
encodeSapObjectName(String name) |
void |
setLogger(org.apache.commons.logging.Log logger) |
protected void |
writeAttribute(XMLEventWriter writer,
String key,
String value,
XMLEventFactory eventFactory) |
protected void |
writeCharacters(XMLEventWriter writer,
String characters,
XMLEventFactory eventFactory) |
protected void |
writeEndDocument(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndElement(XMLEventWriter writer,
String elementName,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdAll(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdAttribute(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdComplexType(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdElement(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdExtension(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdRestriction(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdSequence(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdSimpleContent(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeEndXsdSimpleType(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeStartDocument(XMLEventWriter writer,
XMLEventFactory eventFactory,
String encoding) |
protected void |
writeStartElement(XMLEventWriter writer,
String elementName,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdAll(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdAttribute(XMLEventWriter writer,
String name,
String type,
boolean required,
String defaultValue,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdComplexType(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdElement(XMLEventWriter writer,
String name,
String type,
String minOccurs,
String maxOccurs,
String fixed,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdElement(XMLEventWriter writer,
String name,
String type,
String minOccurs,
String maxOccurs,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdElement(XMLEventWriter writer,
String name,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdExtension(XMLEventWriter writer,
String base,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdRestriction(XMLEventWriter writer,
String base,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdSequence(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdSimpleContent(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeStartXsdSimpleType(XMLEventWriter writer,
XMLEventFactory eventFactory) |
protected void |
writeXsdAttribute(XMLEventWriter writer,
String name,
String type,
boolean required,
String defaultValue,
XMLEventFactory eventFactory) |
protected void |
writeXsdAttribute(XMLEventWriter writer,
String name,
String type,
boolean required,
XMLEventFactory eventFactory) |
protected void |
writeXsdDocumentation(XMLEventWriter writer,
String documentation,
XMLEventFactory eventFactory) |
protected void |
writeXsdEnumRestriction(XMLEventWriter writer,
String[] enumValues,
XMLEventFactory eventFactory) |
protected void |
writeXsdFixedAttribute(XMLEventWriter writer,
String name,
String type,
String fixedValue,
XMLEventFactory eventFactory) |
protected void |
writeXsdMaxLengthRestriction(XMLEventWriter writer,
int maxLength,
XMLEventFactory eventFactory) |
protected org.apache.commons.logging.Log logger
public static final String ENCODED_SLASH_FOR_XML
public static final String ENCODED_CODE_DIGIT_START
protected void writeStartElement(XMLEventWriter writer, String elementName, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndElement(XMLEventWriter writer, String elementName, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeAttribute(XMLEventWriter writer, String key, String value, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeCharacters(XMLEventWriter writer, String characters, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartDocument(XMLEventWriter writer, XMLEventFactory eventFactory, String encoding) throws XMLStreamException
XMLStreamException
protected void writeEndDocument(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
public void setLogger(org.apache.commons.logging.Log logger)
protected void writeStartXsdExtension(XMLEventWriter writer, String base, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdExtension(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdRestriction(XMLEventWriter writer, String base, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdRestriction(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeXsdMaxLengthRestriction(XMLEventWriter writer, int maxLength, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeXsdEnumRestriction(XMLEventWriter writer, String[] enumValues, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdElement(XMLEventWriter writer, String name, String type, String minOccurs, String maxOccurs, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdElement(XMLEventWriter writer, String name, String type, String minOccurs, String maxOccurs, String fixed, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdElement(XMLEventWriter writer, String name, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdElement(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdComplexType(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdComplexType(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdSimpleType(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdSimpleType(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdSimpleContent(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdSimpleContent(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdSequence(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdSequence(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdAll(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdAll(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeXsdFixedAttribute(XMLEventWriter writer, String name, String type, String fixedValue, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeXsdAttribute(XMLEventWriter writer, String name, String type, boolean required, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeStartXsdAttribute(XMLEventWriter writer, String name, String type, boolean required, String defaultValue, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeEndXsdAttribute(XMLEventWriter writer, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeXsdAttribute(XMLEventWriter writer, String name, String type, boolean required, String defaultValue, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected void writeXsdDocumentation(XMLEventWriter writer, String documentation, XMLEventFactory eventFactory) throws XMLStreamException
XMLStreamException
protected String cleanInvalidXmlChars(String text, String replacement)
text
- The String to cleanreplacement
- The string to be substituted for each matchCopyright © 2016. All rights reserved.