Class AbstractMapConverter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.beans.PropertyEditor keyEditor  
      private java.beans.PropertyEditor valueEditor  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        AbstractMapConverter​(java.lang.Class type)  
      protected AbstractMapConverter​(java.lang.Class type, java.beans.PropertyEditor keyEditor, java.beans.PropertyEditor valueEditor)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.Map createMap​(java.util.Map map)  
      protected java.lang.Object toObjectImpl​(java.lang.String text)
      Treats the text value of this property as an input stream that is converted into a Property bundle.
      protected java.lang.String toStringImpl​(java.lang.Object value)
      Converts the supplied object to text.
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.beans.PropertyEditor

        addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
    • Field Detail

      • keyEditor

        private final java.beans.PropertyEditor keyEditor
      • valueEditor

        private final java.beans.PropertyEditor valueEditor
    • Constructor Detail

      • AbstractMapConverter

        public AbstractMapConverter​(java.lang.Class type)
      • AbstractMapConverter

        protected AbstractMapConverter​(java.lang.Class type,
                                       java.beans.PropertyEditor keyEditor,
                                       java.beans.PropertyEditor valueEditor)
    • Method Detail

      • toObjectImpl

        protected final java.lang.Object toObjectImpl​(java.lang.String text)
        Treats the text value of this property as an input stream that is converted into a Property bundle.
        Specified by:
        toObjectImpl in class AbstractConverter
        Parameters:
        text - the text to convert
        Returns:
        a Properties object
        Throws:
        PropertyEditorException - An error occurred creating the Properties object.
      • createMap

        protected abstract java.util.Map createMap​(java.util.Map map)
      • toStringImpl

        protected final java.lang.String toStringImpl​(java.lang.Object value)
        Description copied from class: AbstractConverter
        Converts the supplied object to text. The supplied object will always be an instance of the editor type, and specifically will never be null or a String (unless this is the String editor).
        Overrides:
        toStringImpl in class AbstractConverter
        Parameters:
        value - an instance of the editor type
        Returns:
        the text equivalent of the value