Package org.apache.maven.model
Class InputSource
java.lang.Object
org.apache.maven.model.InputSource
- All Implemented Interfaces:
Serializable,Cloneable
Class InputSource.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for InputSource.InputSource(InputSource source) Creates a new InputSource from an API model InputSource. -
Method Summary
Modifier and TypeMethodDescriptionclone()Method clone.booleanGet the location of the POM from which this POM was imported from.Get the path/URL of the POM ornullif unknown.Get the identifier of the POM in the format<groupId>:<artifactId>:<version>.inthashCode()voidsetImportedFrom(InputLocation importedFrom) Set the location of the POM from which this POM was imported from.voidsetLocation(String location) Set the path/URL of the POM ornullif unknown.voidsetModelId(String modelId) Set the identifier of the POM in the format<groupId>:<artifactId>:<version>.Converts this compat model InputSource to an API model InputSource.toString()
-
Constructor Details
-
InputSource
public InputSource()Default constructor for InputSource. -
InputSource
Creates a new InputSource from an API model InputSource. This constructor is used for converting between the API model and the compat model.- Parameters:
source- the API model InputSource to convert from
-
-
Method Details
-
clone
Method clone. -
getLocation
Get the path/URL of the POM ornullif unknown.- Returns:
- String
-
getModelId
Get the identifier of the POM in the format<groupId>:<artifactId>:<version>.- Returns:
- String
-
setLocation
Set the path/URL of the POM ornullif unknown.- Parameters:
location-
-
setModelId
Set the identifier of the POM in the format<groupId>:<artifactId>:<version>.- Parameters:
modelId-
-
getImportedFrom
Get the location of the POM from which this POM was imported from. Can returnnullif this POM was not imported.- Returns:
- the InputLocation where this POM was imported from, or null if not imported
-
setImportedFrom
Set the location of the POM from which this POM was imported from.- Parameters:
importedFrom- the InputLocation where this POM was imported from, or null if not imported
-
equals
-
hashCode
public int hashCode() -
toString
-
toApiSource
Converts this compat model InputSource to an API model InputSource. This method is used for converting between the compat model and the API model.- Returns:
- the equivalent API model InputSource
-