org.apache.maven.mercury.repository.metadata
Class MergeOperation

java.lang.Object
  extended by org.apache.maven.mercury.repository.metadata.MergeOperation
All Implemented Interfaces:
MetadataOperation

public class MergeOperation
extends java.lang.Object
implements MetadataOperation

Version:
$Id: MergeOperation.java 720564 2008-11-25 18:58:02Z ogusakov $
Author:
Oleg Gusakov

Constructor Summary
MergeOperation(MetadataOperand data)
           
 
Method Summary
 boolean perform(Metadata targetMetadata)
          merge the supplied operand Metadata into this metadata
 void setOperand(java.lang.Object data)
          sets the operation's data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeOperation

public MergeOperation(MetadataOperand data)
               throws MetadataException
Throws:
MetadataException
Method Detail

perform

public boolean perform(Metadata targetMetadata)
                throws MetadataException
merge the supplied operand Metadata into this metadata

Specified by:
perform in interface MetadataOperation
Parameters:
targetMetadata - to perform on
Returns:
true if operation changed the data
Throws:
MetadataException

setOperand

public void setOperand(java.lang.Object data)
                throws MetadataException
Description copied from interface: MetadataOperation
sets the operation's data

Specified by:
setOperand in interface MetadataOperation
Throws:
MetadataException


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.