org.compass.core.mapping.osem
Class ClassMapping.PostProcessMappingCallback
java.lang.Object
org.compass.core.mapping.osem.OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer
org.compass.core.mapping.osem.ClassMapping.PostProcessMappingCallback
- All Implemented Interfaces:
- OsemMappingIterator.ClassMappingCallback
- Enclosing class:
- ClassMapping
public class ClassMapping.PostProcessMappingCallback
- extends OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer
|
Method Summary |
HashMap<String,ResourcePropertyMapping> |
getPathMappings()
|
boolean |
onBeginClassMapping(ClassMapping classMapping)
In case we do not need to support unmarshalling, we need to perform simple cyclic detection
and return false (won't iterate into this class mapping) if we already passed
this class mapping. |
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 |
onEndClassMapping(ClassMapping classMapping)
If we do not support unmarshalling, we need to clean up our marker for this class mapping. |
void |
onEndMultiplMapping(ClassMapping classMapping,
Mapping mapping)
|
void |
onResourcePropertyMapping(ResourcePropertyMapping mapping)
|
| Methods inherited from class org.compass.core.mapping.osem.OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer |
getClassPropertyMappings, getResourcePropertyMappings, onBeginCollectionMapping, onCascadeMapping, onClassPropertyMetaDataMapping, onComponentMapping, onConstantMetaDataMappaing, onDynamicMetaDataMapping, onEndCollectionMapping, onParentMapping, onReferenceMapping |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassMapping.PostProcessMappingCallback
public ClassMapping.PostProcessMappingCallback()
onBeginClassMapping
public boolean onBeginClassMapping(ClassMapping classMapping)
- In case we do not need to support unmarshalling, we need to perform simple cyclic detection
and return
false (won't iterate into this class mapping) if we already passed
this class mapping. We will remove the marker in the onEndClassMapping(ClassMapping).
- Specified by:
onBeginClassMapping in interface OsemMappingIterator.ClassMappingCallback- Overrides:
onBeginClassMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer
onEndClassMapping
public void onEndClassMapping(ClassMapping classMapping)
- If we do not support unmarshalling, we need to clean up our marker for this class mapping.
- Specified by:
onEndClassMapping in interface OsemMappingIterator.ClassMappingCallback- Overrides:
onEndClassMapping in class OsemMappingIterator.ClassPropertyAndResourcePropertyGatherer
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<String,ResourcePropertyMapping> getPathMappings()
Copyright (c) 2004-2008 The Compass Project.