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 TypeMethodDescriptionGets the parent InputLocation where this InputLocation may have been imported from.getLocation(Object field) Gets the location of the specified field in the input source.
-
Method Details
-
getLocation
Gets the location of the specified field in the input source.- Parameters:
field- the key of the field, must not benull- Returns:
- the location of the field in the input source or
nullif unknown - Throws:
NullPointerException- iffieldisnull
-
getImportedFrom
InputLocation getImportedFrom()Gets the parent InputLocation where this InputLocation may have been imported from. Can returnnull.- Returns:
- InputLocation
- Since:
- 4.0.0
-