Interface AppComponentAttributeMapping<T>

  • Type Parameters:
    T - the attribute class

    public interface AppComponentAttributeMapping<T>
    An attribute mapping can be added to AppComponents to 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 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