Daisy Open Source CMS

org.outerj.daisy.tools.importexport.import_.schema
Class BaseSchemaLoadListener

java.lang.Object
  extended by org.outerj.daisy.tools.importexport.import_.schema.BaseSchemaLoadListener
All Implemented Interfaces:
SchemaLoadListener

public abstract class BaseSchemaLoadListener
extends Object
implements SchemaLoadListener


Nested Class Summary
static class BaseSchemaLoadListener.LoadInfo
           
 
Constructor Summary
BaseSchemaLoadListener()
           
 
Method Summary
 void conflictingFieldType(String fieldTypeName, ValueType requiredType, ValueType foundType)
           
 void conflictingHierarchical(String fieldTypeName, boolean needHierarchical, boolean foundHierarchical)
           
 void conflictingMultiValue(String fieldTypeName, boolean needMultivalue, boolean foundMultivalue)
          Reports that a conflict is found between the multivalue setting of the currently existing field type and the field type in the import definition with the same name.
 int count(List<BaseSchemaLoadListener.LoadInfo> list, SchemaLoadResult result)
           
 void documentTypeLoaded(String documentTypeName, SchemaLoadResult result)
           
 void done()
           
 void fieldTypeLoaded(String fieldTypeName, SchemaLoadResult result)
           
 void generateSaxFragment(ContentHandler contentHandler)
           
 List<BaseSchemaLoadListener.LoadInfo> getLoadedDocumentTypes()
           
 List<BaseSchemaLoadListener.LoadInfo> getLoadedFieldTypes()
           
 List<BaseSchemaLoadListener.LoadInfo> getLoadedPartTypes()
           
 void partTypeLoaded(String partTypeName, SchemaLoadResult result)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.outerj.daisy.tools.importexport.import_.schema.SchemaLoadListener
isInterrupted
 

Constructor Detail

BaseSchemaLoadListener

public BaseSchemaLoadListener()
Method Detail

conflictingFieldType

public void conflictingFieldType(String fieldTypeName,
                                 ValueType requiredType,
                                 ValueType foundType)
                          throws Exception
Specified by:
conflictingFieldType in interface SchemaLoadListener
Throws:
Exception

conflictingMultiValue

public void conflictingMultiValue(String fieldTypeName,
                                  boolean needMultivalue,
                                  boolean foundMultivalue)
                           throws Exception
Description copied from interface: SchemaLoadListener
Reports that a conflict is found between the multivalue setting of the currently existing field type and the field type in the import definition with the same name.

The implementation may choose to simply log this error and continue, or throw an exception to interrupt the schema import process.

Specified by:
conflictingMultiValue in interface SchemaLoadListener
Throws:
Exception

conflictingHierarchical

public void conflictingHierarchical(String fieldTypeName,
                                    boolean needHierarchical,
                                    boolean foundHierarchical)
                             throws Exception
Specified by:
conflictingHierarchical in interface SchemaLoadListener
Throws:
Exception

fieldTypeLoaded

public void fieldTypeLoaded(String fieldTypeName,
                            SchemaLoadResult result)
Specified by:
fieldTypeLoaded in interface SchemaLoadListener

partTypeLoaded

public void partTypeLoaded(String partTypeName,
                           SchemaLoadResult result)
Specified by:
partTypeLoaded in interface SchemaLoadListener

documentTypeLoaded

public void documentTypeLoaded(String documentTypeName,
                               SchemaLoadResult result)
Specified by:
documentTypeLoaded in interface SchemaLoadListener

getLoadedFieldTypes

public List<BaseSchemaLoadListener.LoadInfo> getLoadedFieldTypes()

getLoadedPartTypes

public List<BaseSchemaLoadListener.LoadInfo> getLoadedPartTypes()

getLoadedDocumentTypes

public List<BaseSchemaLoadListener.LoadInfo> getLoadedDocumentTypes()

count

public int count(List<BaseSchemaLoadListener.LoadInfo> list,
                 SchemaLoadResult result)

done

public void done()
Specified by:
done in interface SchemaLoadListener

generateSaxFragment

public void generateSaxFragment(ContentHandler contentHandler)
                         throws SAXException
Throws:
SAXException

Daisy Open Source CMS