Module org.jhotdraw8.application
Interface ResourceDecoder
- All Known Implementing Classes:
FontIconDecoder
public interface ResourceDecoder
Decodes a resource value.
- Author:
- Werner Randelshofer
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecodeValue(String key, String propertyValue, Class<?> type) Returns true if this resource handler can decode the specified property value.<T> @NonNull TDecodes the property value.
-
Method Details
-
canDecodeValue
Returns true if this resource handler can decode the specified property value.- Parameters:
key- The property keypropertyValue- the property valuetype- The desired type- Returns:
- true if the property can be decoded
-
decode
Decodes the property value.- Type Parameters:
T- The type of the decoded object- Parameters:
key- The property keypropertyValue- The property valuetype- The desired typebaseClass- The base class to be used if the property value is a resource uri- Returns:
- the decoded object
-