Package org.compiere.install
Class TranslationHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.compiere.install.TranslationHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
SAX Handler for parsing Translation
- Version:
- $Id: TranslationHandler.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
ConstructorDescriptionTranslationHandler
(int AD_Client_ID) Translation HandlerTranslationHandler
(int AD_Client_ID, String trxName) Translation Handler -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Receive notification of character data inside an element.void
endElement
(String uri, String localName, String qName) Receive notification of the end of an element.int
Get Number of updatesvoid
startElement
(String uri, String localName, String qName, Attributes attributes) 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
TranslationHandler
public TranslationHandler(int AD_Client_ID) Translation Handler- Parameters:
AD_Client_ID
- only certain client if id >= 0
-
TranslationHandler
Translation Handler- Parameters:
AD_Client_ID
- only certain client if id >= 0trxName
- Transaction
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) 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 nameattributes
- attributes- Throws:
SAXException
-
characters
Receive notification of character data inside an element.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
ch
- bufferstart
- startlength
- length- Throws:
SAXException
-
endElement
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
-
getUpdateCount
public int getUpdateCount()Get Number of updates- Returns:
- update count
-