Interface InputLocationTracker

All Known Implementing Classes:
Activation, ActivationFile, ActivationOS, ActivationProperty, Build, BuildBase, CiManagement, ConfigurationContainer, Contributor, Dependency, DependencyManagement, DeploymentRepository, Developer, DistributionManagement, Exclusion, Extension, FileSet, InputLocation, IssueManagement, License, MailingList, Model, ModelBase, Notifier, Organization, Parent, PatternSet, Plugin, PluginConfiguration, PluginContainer, PluginExecution, PluginManagement, Prerequisites, Profile, Relocation, Reporting, ReportPlugin, ReportSet, Repository, RepositoryBase, RepositoryPolicy, Resource, Scm, Site, Source

public interface InputLocationTracker
Tracks input source locations for model fields.

Implementations provide a mapping from keys (typically field names or indices) to InputLocation instances to support precise error reporting and diagnostics. Keys must be non-null.

Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the parent InputLocation where this InputLocation may have been imported from.
    Gets the location of the specified field in the input source.
  • Method Details

    • getLocation

      InputLocation getLocation(Object field)
      Gets the location of the specified field in the input source.
      Parameters:
      field - the key of the field, must not be null
      Returns:
      the location of the field in the input source or null if unknown
      Throws:
      NullPointerException - if field is null
    • getImportedFrom

      InputLocation getImportedFrom()
      Gets the parent InputLocation where this InputLocation may have been imported from. Can return null.
      Returns:
      InputLocation
      Since:
      4.0.0