Package org.apache.xmlgraphics.xmp.merge
Class MergeRuleSet
java.lang.Object
org.apache.xmlgraphics.xmp.merge.MergeRuleSet
Represents a set of rules used to merge to XMP properties. By default, all properties are
merged by replacing any existing values with the value from the source XMP.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRule
(QName propName, PropertyMerger merger) Adds a merge rule to this set.Returns the PropertyMerger that shall be used when merging the given property.
-
Constructor Details
-
MergeRuleSet
public MergeRuleSet()Main constructor.
-
-
Method Details
-
getPropertyMergerFor
Returns the PropertyMerger that shall be used when merging the given property.- Parameters:
prop
- the property to be merged- Returns:
- the PropertyMerger to be used for merging the property
-
addRule
Adds a merge rule to this set.- Parameters:
propName
- the name of the propertymerger
- the property merger to be used for this property
-