org.apache.xmlgraphics.xmp.merge

## Class NoReplacePropertyMerger

- java.lang.Object
- - org.apache.xmlgraphics.xmp.merge.NoReplacePropertyMerger

- All Implemented Interfaces:
    PropertyMerger

      public class NoReplacePropertyMerger
      extends java.lang.Object
      implements PropertyMerger

  A basic PropertyMerger which only sets a value in the target metadata if there's not already another value.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NoReplacePropertyMerger()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `merge(XMPProperty sourceProp, Metadata target)` Merges a property into a given metadata object

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NoReplacePropertyMerger

          public NoReplacePropertyMerger()

  - ### Method Detail

    - #### merge

          public void merge(XMPProperty sourceProp,
                            Metadata target)

      Description copied from interface: `PropertyMerger`
      Merges a property into a given metadata object
      Specified by:
        `merge` in interface `PropertyMerger`
      Parameters:
        `sourceProp` - the source property
        `target` - the target metadata object
      See Also:
        `PropertyMerger.merge( org.apache.xmlgraphics.xmp.XMPProperty, org.apache.xmlgraphics.xmp.Metadata)`

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