public class FileModelSource extends FileSource implements ModelSource2
File
as a model source.Constructor and Description |
---|
FileModelSource(java.io.File pomFile)
Creates a new model source backed by the specified file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.net.URI |
getLocationURI()
Returns location of the POM, never
null . |
java.io.File |
getPomFile()
Deprecated.
instead use
FileSource.getFile() |
ModelSource2 |
getRelatedSource(java.lang.String relPath)
Returns model source identified by a path relative to this model source POM.
|
int |
hashCode() |
getFile, getInputStream, getLocation, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInputStream, getLocation
public FileModelSource(java.io.File pomFile)
pomFile
- The POM file, must not be null
.@Deprecated public java.io.File getPomFile()
FileSource.getFile()
public ModelSource2 getRelatedSource(java.lang.String relPath)
ModelSource2
relPath
parameter values that
getRelatedSource
in interface ModelSource2
relPath
- is the path of the requested model source relative to this model source POM.null
if no such model source.public java.net.URI getLocationURI()
ModelSource2
null
.getLocationURI
in interface ModelSource2
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object