Daisy Open Source CMS

org.outerj.daisy.tools.importexport.import_.schema
Interface SchemaLoadListener

All Known Implementing Classes:
BaseSchemaLoadListener

public interface SchemaLoadListener


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.
 void documentTypeLoaded(String documentTypeName, SchemaLoadResult result)
           
 void done()
           
 void fieldTypeLoaded(String fieldTypeName, SchemaLoadResult result)
           
 boolean isInterrupted()
          If this method returns true, the import will be interrupted by throwing an exception.
 void partTypeLoaded(String partTypeName, SchemaLoadResult result)
           
 

Method Detail

conflictingFieldType

void conflictingFieldType(String fieldTypeName,
                          ValueType requiredType,
                          ValueType foundType)
                          throws Exception
Throws:
Exception

conflictingMultiValue

void conflictingMultiValue(String fieldTypeName,
                           boolean needMultivalue,
                           boolean foundMultivalue)
                           throws Exception
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.

Throws:
Exception

conflictingHierarchical

void conflictingHierarchical(String fieldTypeName,
                             boolean needHierarchical,
                             boolean foundHierarchical)
                             throws Exception
Throws:
Exception

fieldTypeLoaded

void fieldTypeLoaded(String fieldTypeName,
                     SchemaLoadResult result)

partTypeLoaded

void partTypeLoaded(String partTypeName,
                    SchemaLoadResult result)

documentTypeLoaded

void documentTypeLoaded(String documentTypeName,
                        SchemaLoadResult result)

done

void done()

isInterrupted

boolean isInterrupted()
If this method returns true, the import will be interrupted by throwing an exception.


Daisy Open Source CMS