org.apache.maven.plugin.war.util
Class DependencyInfo

java.lang.Object
  extended by org.apache.maven.plugin.war.util.DependencyInfo

public class DependencyInfo
extends Object

Holds a dependency and packaging information.

Version:
$Id: DependencyInfo.java 682073 2008-08-02 22:32:18Z dennisl $
Author:
Stephane Nicoll

Constructor Summary
DependencyInfo(Dependency dependency)
          Creates a new instance.
 
Method Summary
 boolean equals(Object o)
           
 Dependency getDependency()
          Returns the dependency.
 String getTargetFileName()
          Returns the target filen ame of the dependency.
 int hashCode()
           
 void setTargetFileName(String targetFileName)
          Sets the target file name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependencyInfo

public DependencyInfo(Dependency dependency)
Creates a new instance.

Parameters:
dependency - the dependency
Method Detail

getDependency

public Dependency getDependency()
Returns the dependency.

Returns:
the dependency

getTargetFileName

public String getTargetFileName()
Returns the target filen ame of the dependency. If no target file name is associated, returns null.

Returns:
the target file name or null

setTargetFileName

public void setTargetFileName(String targetFileName)
Sets the target file name.

Parameters:
targetFileName - the target file name

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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