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.html 868453 2013-07-05 11:25:41Z olamy $
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–2013 The Apache Software Foundation. All rights reserved.