Class CardinalityChecker
- java.lang.Object
-
- org.somda.sdc.biceps.provider.preprocessing.CardinalityChecker
-
- All Implemented Interfaces:
DescriptionPreprocessingSegment
public class CardinalityChecker extends Object implements DescriptionPreprocessingSegment
Preprocessing segment that verifies correctness of child cardinality.In BICEPS descriptors of a certain type can appear one or many times as a child of another descriptor. This checker guarantees that no child is inserted twice if the maximum allowed number of children is one.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(MdibDescriptionModifications allModifications, MdibDescriptionModification currentModification, MdibStorage storage)In a sequence of modifications this function processes one modification.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.somda.sdc.biceps.common.storage.DescriptionPreprocessingSegment
afterLastModification, beforeFirstModification
-
-
-
-
Method Detail
-
process
public void process(MdibDescriptionModifications allModifications, MdibDescriptionModification currentModification, MdibStorage storage) throws CardinalityException
Description copied from interface:DescriptionPreprocessingSegmentIn a sequence of modifications this function processes one modification.- Specified by:
processin interfaceDescriptionPreprocessingSegment- Parameters:
allModifications- all modifications.currentModification- the current modification to be processed.storage- the MDIB storage for access.- Throws:
CardinalityException
-
-