com.sap.netweaver.bc.serialize.util

Class XMLPropertyConverter

java.lang.Object
  extended by com.sap.netweaver.bc.serialize.util.XMLPropertyConverter
All Implemented Interfaces:
ContentHandler, ErrorHandler

public final class XMLPropertyConverter
extends Object
implements ContentHandler, ErrorHandler


Constructor Summary
XMLPropertyConverter()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String namespaceURI, String localName, String rawName)
           
 void endPrefixMapping(String prefix)
           
 void error(SAXParseException exception)
           
 void fatalError(SAXParseException exception)
           
 IPropertyMap getMap()
           
 void ignorableWhitespace(char[] ch, int start, int length)
           
 void processingInstruction(String target, String data)
           
 void setDocumentLocator(Locator locator)
           
 void skippedEntity(String name)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String rawName, Attributes atts)
          Creates for each element in XML a specific entry in one of the three existing mapping objects.
 void startPrefixMapping(String prefix, String uri)
           
 void warning(SAXParseException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLPropertyConverter

public XMLPropertyConverter()
Method Detail

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String rawName,
                         Attributes atts)
                  throws SAXException
Creates for each element in XML a specific entry in one of the three existing mapping objects.

Specified by:
startElement in interface ContentHandler
Parameters:
localName - The element name.
atts - Array of attributes that belongs to element.
namespaceURI -
rawName -
Throws:
SAXException - Will be thrown in any case of XML error (syntax errors, etc.)

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Parameters:
ch -
start -
length -
Throws:
SAXException - Exception raised in failure situation

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String rawName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Parameters:
namespaceURI -
localName -
rawName -
Throws:
SAXException - Exception raised in failure situation

getMap

public IPropertyMap getMap()

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Throws:
SAXException

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Throws:
SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws SAXException
Specified by:
ignorableWhitespace in interface ContentHandler
Throws:
SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
                      throws SAXException
Specified by:
endPrefixMapping in interface ContentHandler
Throws:
SAXException

skippedEntity

public void skippedEntity(String name)
                   throws SAXException
Specified by:
skippedEntity in interface ContentHandler
Throws:
SAXException

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Throws:
SAXException

error

public void error(SAXParseException exception)
           throws SAXException
Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

warning

public void warning(SAXParseException exception)
             throws SAXException
Specified by:
warning in interface ErrorHandler
Throws:
SAXException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice