Class InputSource
java.lang.Object
org.apache.maven.api.model.InputSource
- All Implemented Interfaces:
Serializable
Represents the source of a model input, such as a POM file.
This class tracks the origin of model elements, including their location in source files and relationships between imported models. It's used for error reporting and debugging to help identify where specific model elements came from.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputSource
(String modelId, String location) InputSource
(String modelId, String location, InputLocation importedFrom) InputSource
(Collection<InputSource> inputs) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the parent InputLocation where this InputLocation may have been imported from.Get the path/URL of the POM ornull
if unknown.Get the identifier of the POM in the format<groupId>:<artifactId>:<version>
.int
hashCode()
static InputSource
merge
(InputSource src1, InputSource src2) toString()
-
Constructor Details
-
InputSource
-
InputSource
-
InputSource
-
-
Method Details
-
getLocation
-
getModelId
Get the identifier of the POM in the format<groupId>:<artifactId>:<version>
.- Returns:
- the model id
-
getImportedFrom
Gets the parent InputLocation where this InputLocation may have been imported from. Can returnnull
.- Returns:
- InputLocation
- Since:
- 4.0.0
-
equals
-
hashCode
-
toString
-
merge
-