Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.xmlgraphics.xmp.merge
Class MergeRuleSet

    java.lang.Object
      org.apache.xmlgraphics.xmp.merge.MergeRuleSet

    public class MergeRuleSet

extends Object

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
`MergeRuleSet()` Main constructor.

Method Summary
`void` | `addRule(QName propName, PropertyMerger merger)` Adds a merge rule to this set.
`PropertyMerger` | `getPropertyMergerFor(XMPProperty prop)` Returns the PropertyMerger that shall be used when merging the given property.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MergeRuleSet

    public MergeRuleSet()

  Main constructor.

Method Detail

### getPropertyMergerFor

    public PropertyMerger getPropertyMergerFor(XMPProperty prop)

  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

    public void addRule(QName propName,
                        PropertyMerger merger)

  Adds a merge rule to this set.

  Parameters:
    `propName` - the name of the property
    `merger` - the property merger to be used for this property

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| xmlgraphics-commons 2.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.