org.inigma.waragent.crud
Class SynchronizationHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.xml.sax.ext.DefaultHandler2
          extended by org.inigma.utopia.parser.AbstractSynchronizationHandler
              extended by org.inigma.waragent.crud.SynchronizationHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.EntityResolver2, org.xml.sax.ext.LexicalHandler

public class SynchronizationHandler
extends org.inigma.utopia.parser.AbstractSynchronizationHandler


Constructor Summary
SynchronizationHandler(AccountCrud crud)
           
 
Method Summary
protected  org.inigma.utopia.Kingdom getKingdom(int k, int i)
           
protected  org.inigma.utopia.Province getProvinceByName(java.lang.String name)
           
protected  void log(java.lang.String pattern, java.lang.Object... args)
           
protected  void updateKingdom(org.inigma.utopia.Kingdom kingdom, boolean updateStatus)
           
protected  void updateMilitary(org.inigma.utopia.Military military, boolean updateStatus)
           
protected  void updateProvince(org.inigma.utopia.Province province, boolean updateStatus)
           
protected  void updateScience(org.inigma.utopia.Science science, boolean updateStatus)
           
protected  void updateSurvey(org.inigma.utopia.Survey survey, boolean updateStatus)
           
 
Methods inherited from class org.inigma.utopia.parser.AbstractSynchronizationHandler
endElement, getBoolean, getInteger, getLong, startElement
 
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, 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

SynchronizationHandler

public SynchronizationHandler(AccountCrud crud)
Method Detail

getKingdom

protected org.inigma.utopia.Kingdom getKingdom(int k,
                                               int i)
Specified by:
getKingdom in class org.inigma.utopia.parser.AbstractSynchronizationHandler

getProvinceByName

protected org.inigma.utopia.Province getProvinceByName(java.lang.String name)
Specified by:
getProvinceByName in class org.inigma.utopia.parser.AbstractSynchronizationHandler

log

protected void log(java.lang.String pattern,
                   java.lang.Object... args)
Specified by:
log in class org.inigma.utopia.parser.AbstractSynchronizationHandler

updateKingdom

protected void updateKingdom(org.inigma.utopia.Kingdom kingdom,
                             boolean updateStatus)
Specified by:
updateKingdom in class org.inigma.utopia.parser.AbstractSynchronizationHandler

updateMilitary

protected void updateMilitary(org.inigma.utopia.Military military,
                              boolean updateStatus)
Specified by:
updateMilitary in class org.inigma.utopia.parser.AbstractSynchronizationHandler

updateProvince

protected void updateProvince(org.inigma.utopia.Province province,
                              boolean updateStatus)
Specified by:
updateProvince in class org.inigma.utopia.parser.AbstractSynchronizationHandler

updateScience

protected void updateScience(org.inigma.utopia.Science science,
                             boolean updateStatus)
Specified by:
updateScience in class org.inigma.utopia.parser.AbstractSynchronizationHandler

updateSurvey

protected void updateSurvey(org.inigma.utopia.Survey survey,
                            boolean updateStatus)
Specified by:
updateSurvey in class org.inigma.utopia.parser.AbstractSynchronizationHandler


Copyright © 2008. All Rights Reserved.