com.atlassian.jira.action.admin
Class OfbizImportHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.atlassian.jira.action.admin.OfbizImportHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class OfbizImportHandler
extends org.xml.sax.helpers.DefaultHandler

Sax handler for constructing GenericValues from data in XML format.


Constructor Summary
OfbizImportHandler(org.ofbiz.core.entity.GenericDelegator genericDelegator, java.util.concurrent.Executor executor, com.atlassian.jira.action.admin.DataImport.ErrorHandler errorHandler, LicenseStringFactory licenseStringFactory, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager)
           
OfbizImportHandler(org.ofbiz.core.entity.GenericDelegator genericDelegator, java.util.concurrent.Executor executor, com.atlassian.jira.action.admin.DataImport.ErrorHandler errorHandler, LicenseStringFactory licenseStringFactory, IndexPathManager indexPathManager, AttachmentPathManager attachmentPathManager, boolean useDefaultPaths)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 java.lang.String getAttachmentPath()
           
 java.lang.String getBuildNumber()
           
 long getEntityCount()
           
 com.atlassian.jira.action.admin.DataImport.ErrorHandler getErrorHandler()
           
 java.lang.String getIndexPath()
           
 java.lang.String getLicenseString()
           
 boolean isUseDefaultAttachmentPath()
           
 boolean isUseDefaultIndexPath()
           
 void setCreateEntities(boolean createEntities)
           
 void startDocument()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfbizImportHandler

public OfbizImportHandler(org.ofbiz.core.entity.GenericDelegator genericDelegator,
                          java.util.concurrent.Executor executor,
                          com.atlassian.jira.action.admin.DataImport.ErrorHandler errorHandler,
                          LicenseStringFactory licenseStringFactory,
                          IndexPathManager indexPathManager,
                          AttachmentPathManager attachmentPathManager)

OfbizImportHandler

public OfbizImportHandler(org.ofbiz.core.entity.GenericDelegator genericDelegator,
                          java.util.concurrent.Executor executor,
                          com.atlassian.jira.action.admin.DataImport.ErrorHandler errorHandler,
                          LicenseStringFactory licenseStringFactory,
                          IndexPathManager indexPathManager,
                          AttachmentPathManager attachmentPathManager,
                          boolean useDefaultPaths)
Method Detail

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

setCreateEntities

public void setCreateEntities(boolean createEntities)

getEntityCount

public long getEntityCount()

getBuildNumber

public java.lang.String getBuildNumber()
Returns:
the build number as read from the xml file or null if none found.

getLicenseString

public java.lang.String getLicenseString()

getErrorHandler

public com.atlassian.jira.action.admin.DataImport.ErrorHandler getErrorHandler()

isUseDefaultIndexPath

public boolean isUseDefaultIndexPath()

isUseDefaultAttachmentPath

public boolean isUseDefaultAttachmentPath()

getIndexPath

public java.lang.String getIndexPath()

getAttachmentPath

public java.lang.String getAttachmentPath()


Copyright © 2002-2010 Atlassian. All Rights Reserved.