Interface ImportedResource


@NoImplement public interface ImportedResource
Represents a resource that can be imported by an artifact.
  • Field Details

  • Method Details

    • getRawResourceLocation

      String getRawResourceLocation()
      This method WILL NOT resolve any property placeholders to the actual values if present. Use getResourceLocation() if properties resolution is needed.
      Returns:
      the imported resource file location as defined in the DSL.
    • getResourceLocation

      String getResourceLocation()
      Returns:
      the imported resource file location.
    • getMetadata

      ComponentMetadataAst getMetadata()
      Returns:
      the metadata from the import declaration in the DSL.
    • getResolutionFailure

      Optional<String> getResolutionFailure()
      Returns:
      if the parser was unable to resolve the location for this import, an explanatory message will be returned.
      Since:
      1.1
    • updatePropertiesResolver

      void updatePropertiesResolver(UnaryOperator<String> propertiesResolver)
      Updates the properties resolution callback.
      Parameters:
      propertiesResolver - The new property resolution callback.