Package org.apache.maven.model.building
Class FileModelSource
java.lang.Object
org.apache.maven.building.FileSource
org.apache.maven.model.building.FileModelSource
- All Implemented Interfaces:
- Source,- ModelSource,- ModelSource2
Deprecated.
Wraps an ordinary 
File as a model source.- 
Constructor SummaryConstructorsConstructorDescriptionFileModelSource(File pomFile) Deprecated.Creates a new model source backed by the specified file.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Returns location of the POM, nevernull.Deprecated.instead useFileSource.getFile()getRelatedSource(String relPath) Deprecated.Returns model source identified by a path relative to this model source POM.inthashCode()Deprecated.Methods inherited from class org.apache.maven.building.FileSourcegetFile, getInputStream, getLocation, getPath, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.building.SourcegetInputStream, getLocation
- 
Constructor Details- 
FileModelSourceDeprecated.Creates a new model source backed by the specified file.- Parameters:
- pomFile- The POM file, must not be- null.
 
 
- 
- 
Method Details- 
getPomFileDeprecated.instead useFileSource.getFile()- Returns:
- the file of this source
 
- 
getRelatedSourceDeprecated.Description copied from interface:ModelSource2Returns model source identified by a path relative to this model source POM. Implementation MUST be able to acceptrelPathparameter values that- use either / or \ file path separator
- have .. parent directory references
- point either at file or directory, in the latter case POM file name 'pom.xml' needs to be used by the requested model source.
 - Specified by:
- getRelatedSourcein interface- ModelSource2
- Parameters:
- relPath- is the path of the requested model source relative to this model source POM.
- Returns:
- related model source or nullif no such model source.
 
- 
getLocationURIDeprecated.Description copied from interface:ModelSource2Returns location of the POM, nevernull.- Specified by:
- getLocationURIin interface- ModelSource2
 
- 
equalsDeprecated.- Overrides:
- equalsin class- FileSource
 
- 
hashCodepublic int hashCode()Deprecated.- Overrides:
- hashCodein class- FileSource
 
 
- 
org.apache.maven.api.services.ModelBuilderinstead