Package eu.woolplatform.utils
Interface AppComponentAttributeMapping<T>
-
- Type Parameters:
T- the attribute class
public interface AppComponentAttributeMapping<T>An attribute mapping can be added toAppComponentsto register custom attribute types. It is used when a component is built from XML. If an attribute has a matching class, then the mapping will be used to parse the string value of the attribute.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<T>getAttributeClass()Returns the attribute class.TparseValue(String value)Parses the string representation of the attribute value.
-
-
-
Method Detail
-
getAttributeClass
Class<T> getAttributeClass()
Returns the attribute class.- Returns:
- the attribute class
-
parseValue
T parseValue(String value) throws ParseException
Parses the string representation of the attribute value.- Parameters:
value- string representation of the attribute value- Returns:
- the attribute value
- Throws:
ParseException- if the string format is invalid
-
-