@NoImplement
public interface ImportedResource
Represents a resource that can be imported by an artifact.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThis method WILL NOT resolve any property placeholders to the actual values if present.voidupdatePropertiesResolver(UnaryOperator<String> propertiesResolver) Updates the properties resolution callback.
-
Field Details
-
COULD_NOT_RESOLVE_IMPORTED_RESOURCE
- See Also:
-
COULD_NOT_FIND_IMPORTED_RESOURCE
- See Also:
-
-
Method Details
-
getRawResourceLocation
String getRawResourceLocation()This method WILL NOT resolve any property placeholders to the actual values if present. UsegetResourceLocation()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
- Returns:
- if the parser was unable to resolve the location for this import, an explanatory message will be returned.
- Since:
- 1.1
-
updatePropertiesResolver
Updates the properties resolution callback.- Parameters:
propertiesResolver- The new property resolution callback.
-