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

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

public class RemoveVersionOperation
extends java.lang.Object
implements MetadataOperation

removes a version from Metadata

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

Constructor Summary
RemoveVersionOperation(StringOperand data)
           
 
Method Summary
 boolean perform(Metadata metadata)
          remove version 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

RemoveVersionOperation

public RemoveVersionOperation(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
remove version to the in-memory metadata instance

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


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