org.compass.core.mapping.osem
Class ClassMapping.PostProcessMappingCallback

java.lang.Object
  extended by org.compass.core.mapping.osem.OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer
      extended by org.compass.core.mapping.osem.ClassMapping.PostProcessMappingCallback
All Implemented Interfaces:
OsemMappingIterator.ClassMappingCallback
Enclosing class:
ClassMapping

public static class ClassMapping.PostProcessMappingCallback
extends OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer


Constructor Summary
ClassMapping.PostProcessMappingCallback()
           
 
Method Summary
 HashMap getPathMappings()
           
 boolean onBeginMultipleMapping(ClassMapping classMapping, Mapping mapping)
           
 void onClassPropertyMapping(ClassMapping classMapping, ClassPropertyMapping mapping)
           
protected  void onDuplicateMapping(ClassMapping classMapping, ObjectMapping actualMapping, ObjectMapping duplicateMapping)
          Since we did not process duplicate mappings, we need to replace them with the original mappings that were processed (for example, we added intenral ids to it where needed).
 void onEndMultiplMapping(ClassMapping classMapping, Mapping mapping)
           
 void onResourcePropertyMapping(ResourcePropertyMapping mapping)
           
 
Methods inherited from class org.compass.core.mapping.osem.OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer
getClassPropertyMappings, getResourcePropertyMappings, onBeginClassMapping, onBeginCollectionMapping, onClassPropertyMetaDataMapping, onComponentMapping, onConstantMetaDataMappaing, onDynamicMetaDataMapping, onEndClassMapping, onEndCollectionMapping, onParentMapping, onReferenceMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMapping.PostProcessMappingCallback

public ClassMapping.PostProcessMappingCallback()
Method Detail

onDuplicateMapping

protected void onDuplicateMapping(ClassMapping classMapping,
                                  ObjectMapping actualMapping,
                                  ObjectMapping duplicateMapping)

Since we did not process duplicate mappings, we need to replace them with the original mappings that were processed (for example, we added intenral ids to it where needed).

Overrides:
onDuplicateMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer

onBeginMultipleMapping

public boolean onBeginMultipleMapping(ClassMapping classMapping,
                                      Mapping mapping)
Specified by:
onBeginMultipleMapping in interface OsemMappingIterator.ClassMappingCallback
Overrides:
onBeginMultipleMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer

onEndMultiplMapping

public void onEndMultiplMapping(ClassMapping classMapping,
                                Mapping mapping)
Specified by:
onEndMultiplMapping in interface OsemMappingIterator.ClassMappingCallback
Overrides:
onEndMultiplMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer

onClassPropertyMapping

public void onClassPropertyMapping(ClassMapping classMapping,
                                   ClassPropertyMapping mapping)
Specified by:
onClassPropertyMapping in interface OsemMappingIterator.ClassMappingCallback
Overrides:
onClassPropertyMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer

onResourcePropertyMapping

public void onResourcePropertyMapping(ResourcePropertyMapping mapping)
Specified by:
onResourcePropertyMapping in interface OsemMappingIterator.ClassMappingCallback
Overrides:
onResourcePropertyMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer

getPathMappings

public HashMap getPathMappings()


Copyright (c) 2004-2006 The Compass Project.