Package com.artenum.rosetta.util
Class ConfigurationBuilder.ConfigurationHandler
- java.lang.Object
-
- com.artenum.rosetta.util.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.ActionMapactionMapprivate java.lang.StringactiveProfileprivate java.util.Hashtable<java.lang.String,java.lang.Object>cacheprivate org.w3c.dom.Documentdomprivate javax.swing.InputMapinputMapprivate java.util.Collection<java.lang.String>internalMethodNamesprivate java.util.ArrayList<java.lang.String>profileListprivate java.lang.Objectproxyprivate booleanuseCache
-
Constructor Summary
Constructors Constructor Description ConfigurationHandler(java.lang.String xmlFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intconvertKeyInformation(java.lang.String value)javax.swing.ActionMapgetActionMapping()java.lang.StringgetActiveProfile()private intgetActiveProfileIndex()javax.swing.InputMapgetKeyMapping()private java.lang.StringgetPropertyValue(java.lang.String propertyName)get the value of the propertiejava.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)voidsetActiveProfile(java.lang.String profileName)
-
-
-
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
-
-
Method Detail
-
setActiveProfile
public void setActiveProfile(java.lang.String profileName)
- Specified by:
setActiveProfilein interfaceConfiguration
-
getActiveProfile
public java.lang.String getActiveProfile()
- Specified by:
getActiveProfilein interfaceConfiguration- Returns:
-
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:
invokein interfacejava.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
-
getActionMapping
public javax.swing.ActionMap getActionMapping()
- Specified by:
getActionMappingin interfaceConfiguration- Returns:
-
getKeyMapping
public javax.swing.InputMap getKeyMapping()
- Specified by:
getKeyMappingin interfaceConfiguration- Returns:
-
convertKeyInformation
private int convertKeyInformation(java.lang.String value)
- Parameters:
value-- Returns:
-
-