Class ConfigurationBuilder.ConfigurationHandler

  • All Implemented Interfaces:
    Configuration, java.lang.reflect.InvocationHandler
    Enclosing class:
    ConfigurationBuilder

    private static class ConfigurationBuilder.ConfigurationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler, Configuration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.ActionMap actionMap  
      private java.lang.String activeProfile  
      private java.util.Hashtable<java.lang.String,​java.lang.Object> cache  
      private org.w3c.dom.Document dom  
      private javax.swing.InputMap inputMap  
      private java.util.Collection<java.lang.String> internalMethodNames  
      private java.util.ArrayList<java.lang.String> profileList  
      private java.lang.Object proxy  
      private boolean useCache  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigurationHandler​(java.lang.String xmlFile)  
    • Field Detail

      • internalMethodNames

        private final java.util.Collection<java.lang.String> internalMethodNames
      • activeProfile

        private java.lang.String activeProfile
      • dom

        private final org.w3c.dom.Document dom
      • profileList

        private final java.util.ArrayList<java.lang.String> profileList
      • cache

        private final java.util.Hashtable<java.lang.String,​java.lang.Object> cache
      • useCache

        private boolean useCache
      • actionMap

        private final javax.swing.ActionMap actionMap
      • inputMap

        private final javax.swing.InputMap inputMap
      • proxy

        private java.lang.Object proxy
    • Constructor Detail

      • ConfigurationHandler

        public ConfigurationHandler​(java.lang.String xmlFile)
                             throws org.xml.sax.SAXException,
                                    java.io.IOException,
                                    javax.xml.parsers.ParserConfigurationException
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
        javax.xml.parsers.ParserConfigurationException
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • getActiveProfileIndex

        private int getActiveProfileIndex()
        Returns:
      • getPropertyValue

        private java.lang.String getPropertyValue​(java.lang.String propertyName)
        get the value of the propertie
        Parameters:
        propertyName - the name of the propertie
        Returns:
        the value
      • convertKeyInformation

        private int convertKeyInformation​(java.lang.String value)
        Parameters:
        value -
        Returns: