Package org.openrewrite.maven.attributes
Interface Attributed
- All Known Implementing Classes:
Dependency
public interface Attributed
Container for metadata mapped from foreign tools.
The slightly strange pattern of storing the data as a map of strings and retrieving it as something more strongly typed
is for ease of serialization/deserialization without having to reconfigure all of our jackson serializers to accept a polymorphic map of String -> Attribute
-
Method Summary
-
Method Details
-
getAttributes
-
findAttribute
Look up an attribute by class. Only works for attributes which expose "key" and "from" static methods.
-