Class ModelData

java.lang.Object
org.apache.maven.model.building.ModelData

@Deprecated(since="4.0.0") class ModelData extends Object
Deprecated.
use ModelBuilder instead
Holds a model along with some auxiliary information. This internal utility class assists the model builder during POM processing by providing a means to transport information that cannot be (easily) extracted from the model itself.
  • Field Details

    • source

      private final Source source
      Deprecated.
    • model

      private final Model model
      Deprecated.
    • groupId

      private String groupId
      Deprecated.
    • artifactId

      private String artifactId
      Deprecated.
    • version

      private String version
      Deprecated.
  • Constructor Details

    • ModelData

      ModelData(Source source, Model model)
      Deprecated.
      Creates a new container for the specified model.
      Parameters:
      model - The model to wrap, may be null.
    • ModelData

      ModelData(Source source, Model model, String groupId, String artifactId, String version)
      Deprecated.
      Creates a new container for the specified model.
      Parameters:
      model - The model to wrap, may be null.
      groupId - The effective group identifier of the model, may be null.
      artifactId - The effective artifact identifier of the model, may be null.
      version - The effective version of the model, may be null.
  • Method Details

    • getSource

      public Source getSource()
      Deprecated.
    • getModel

      public Model getModel()
      Deprecated.
      Gets the model being wrapped.
      Returns:
      The model or null if not set.
    • getGroupId

      public String getGroupId()
      Deprecated.
      Gets the effective group identifier of the model.
      Returns:
      The effective group identifier of the model or an empty string if unknown, never null.
    • getArtifactId

      public String getArtifactId()
      Deprecated.
      Gets the effective artifact identifier of the model.
      Returns:
      The effective artifact identifier of the model or an empty string if unknown, never null.
    • getVersion

      public String getVersion()
      Deprecated.
      Gets the effective version of the model.
      Returns:
      The effective version of the model or an empty string if unknown, never null.
    • getId

      public String getId()
      Deprecated.
      Gets unique identifier of the model
      Returns:
      The effective identifier of the model, never null.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object