Class InputSource

java.lang.Object
org.apache.maven.model.InputSource
All Implemented Interfaces:
Serializable, Cloneable

public class InputSource extends Object implements Serializable, Cloneable
Class InputSource.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • InputSource

      public InputSource()
      Default constructor for InputSource.
    • InputSource

      public InputSource(InputSource source)
      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

      public InputSource clone()
      Method clone.
      Overrides:
      clone in class Object
      Returns:
      InputSource
    • getLocation

      public String getLocation()
      Get the path/URL of the POM or null if unknown.
      Returns:
      String
    • getModelId

      public String getModelId()
      Get the identifier of the POM in the format <groupId>:<artifactId>:<version>.
      Returns:
      String
    • setLocation

      public void setLocation(String location)
      Set the path/URL of the POM or null if unknown.
      Parameters:
      location -
    • setModelId

      public void setModelId(String modelId)
      Set the identifier of the POM in the format <groupId>:<artifactId>:<version>.
      Parameters:
      modelId -
    • getImportedFrom

      public InputLocation getImportedFrom()
      Get the location of the POM from which this POM was imported from. Can return null if this POM was not imported.
      Returns:
      the InputLocation where this POM was imported from, or null if not imported
    • setImportedFrom

      public void setImportedFrom(InputLocation importedFrom)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toApiSource

      public InputSource 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