Compiere 3.1

org.compiere.install
Class TranslationHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.compiere.install.TranslationHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class TranslationHandler
extends DefaultHandler

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
TranslationHandler(int AD_Client_ID)
          Translation Handler
 
Method Summary
 void 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 getUpdateCount()
          Get Number of updates
 void 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
 

Constructor Detail

TranslationHandler

public TranslationHandler(int AD_Client_ID)
Translation Handler

Parameters:
AD_Client_ID - only certain client if id >= 0
Method Detail

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 interface ContentHandler
Overrides:
startElement in class DefaultHandler
Parameters:
uri - namespace
localName - simple name
qName - qualified name
attributes - attributes
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Receive notification of character data inside an element.

Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Parameters:
ch - buffer
start - start
length - length
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Receive notification of the end of an element.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Parameters:
uri - namespace
localName - simple name
qName - qualified name
Throws:
SAXException

getUpdateCount

public int getUpdateCount()
Get Number of updates

Returns:
update count

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.