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

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

public class SetVersionOperation
extends java.lang.Object
implements MetadataOperation

adds new snapshot to metadata

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

Constructor Summary
SetVersionOperation(StringOperand data)
           
 
Method Summary
 boolean perform(Metadata metadata)
          add/replace snapshot to the in-memory metadata instance
 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

SetVersionOperation

public SetVersionOperation(StringOperand data)
                    throws MetadataException
Throws:
MetadataException
Method Detail

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

perform

public boolean perform(Metadata metadata)
                throws MetadataException
add/replace snapshot to the in-memory metadata instance

Specified by:
perform in interface MetadataOperation
Parameters:
metadata -
Returns:
Throws:
MetadataException


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