|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.model.building.FileModelSource
public class FileModelSource
Wraps an ordinary File as a model source.
| Constructor Summary | |
|---|---|
FileModelSource(File pomFile)
Creates a new model source backed by the specified file. |
|
| Method Summary | |
|---|---|
InputStream |
getInputStream()
Gets a byte stream to the POM contents. |
String |
getLocation()
Provides a user-friendly hint about the location of the POM. |
URI |
getLocationURI()
Returns location of the POM, never null. |
File |
getPomFile()
Gets the POM file of this model source. |
ModelSource2 |
getRelatedSource(String relPath)
Returns model source identified by a path relative to this model source POM. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileModelSource(File pomFile)
pomFile - The POM file, must not be null.| Method Detail |
|---|
public InputStream getInputStream()
throws IOException
ModelSource
getInputStream in interface ModelSourcenull.
IOExceptionpublic String getLocation()
ModelSource
getLocation in interface ModelSourcenull.public File getPomFile()
null.public String toString()
toString in class Objectpublic ModelSource2 getRelatedSource(String relPath)
ModelSource2relPath parameter values that
getRelatedSource in interface ModelSource2relPath - is the path of the requested model source relative to this model source POM.
null if no such model source.public URI getLocationURI()
ModelSource2null.
getLocationURI in interface ModelSource2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||