Package org.adempiere.pipo2
Class PackInHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.adempiere.pipo2.PackInHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class PackInHandler extends DefaultHandler
SAX Handler for parsing XML description of the GUI.- Author:
- Marco LOMBARDO, lombardo@mayking.com, Robert KLEIN, robeklein@hotmailo Contributor: William G. Heath - Import of workflows and dynamic validations
-
-
Constructor Summary
Constructors Constructor Description PackInHandler()
PackInHandler Handler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
dumpUnresolvedElements()
void
endElement(String uri, String localName, String qName)
Receive notification of the end of an element.int
getElementsProcessed()
int
getUnresolvedCount()
void
setCtx(PIPOContext ctx)
void
setProcess(PackIn packIn)
void
startElement(String uri, String localName, String qName, Attributes atts)
Receive notification of the start of an element.-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
Receive notification of the start of an element.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
uri
- namespacelocalName
- simple nameqName
- qualified nameatts
- attributes- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
- See Also:
DefaultHandler.characters(char[], int, int)
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
Receive notification of the end of an element.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
uri
- namespacelocalName
- simple nameqName
- qualified name- Throws:
SAXException
-
setCtx
public void setCtx(PIPOContext ctx)
-
setProcess
public void setProcess(PackIn packIn)
- Parameters:
packIn
-
-
getElementsProcessed
public int getElementsProcessed()
- Returns:
- number of elements that processed successfully
-
getUnresolvedCount
public int getUnresolvedCount()
- Returns:
- number of unresolved elements
-
dumpUnresolvedElements
public void dumpUnresolvedElements()
-
-