|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration
public final class JavaScriptConfiguration
A container for all the javascript configuration information. TODO - Need to add the logic to support the browser and javascript conditionals in the Class elements.
Field Summary | |
---|---|
static int |
DISABLED
Constant indicating that this function/property is not used by the specified browser version |
static int |
ENABLED
Constant indicating that this function/property is used by the specified browser version |
static int |
NOT_FOUND
Constant indicating that this function/property is not defined in the configuration file |
Method Summary | |
---|---|
BrowserVersion |
getBrowser()
|
ClassConfiguration |
getClassConfiguration(java.lang.String classname)
Get the class configuration for the supplied javascript class name |
java.lang.reflect.Method |
getFunctionMethod(java.lang.Class clazz,
java.lang.String functionName)
Get the method that implements the setter for the given property based upon the class object. |
java.lang.reflect.Method |
getFunctionMethod(java.lang.String classname,
java.lang.String functionName)
Return the method that implements the given function in the class for the given class |
static java.util.Map |
getHtmlJavaScriptMapping()
Return an immutable map containing the html to javascript mappings. |
static JavaScriptConfiguration |
getInstance(BrowserVersion browserVersion)
Return the instance that represents the configuration for the specified BrowserVersion . |
java.lang.reflect.Method |
getPropertyReadMethod(java.lang.Class clazz,
java.lang.String propertyName)
Get the method that implements the getter for the given property based upon the class object. |
java.lang.reflect.Method |
getPropertyReadMethod(java.lang.String classname,
java.lang.String propertyName)
Return the method that implements the get function for in the class for the given class |
java.lang.reflect.Method |
getPropertyWriteMethod(java.lang.Class clazz,
java.lang.String propertyName)
Get the method that implements the setter for the given property based upon the class object. |
java.lang.reflect.Method |
getPropertyWriteMethod(java.lang.String classname,
java.lang.String propertyName)
Return the method that implements the set function in the class for the given class |
java.util.Set |
keySet()
Get the set of keys for the class configurations. |
boolean |
propertyExists(java.lang.Class clazz,
java.lang.String propertyName)
Check to see if there is an entry for the given property. |
boolean |
propertyExists(java.lang.String classname,
java.lang.String propertyName)
Check to see if there is an entry for the given property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DISABLED
public static final int ENABLED
public static final int NOT_FOUND
Method Detail |
---|
public BrowserVersion getBrowser()
public ClassConfiguration getClassConfiguration(java.lang.String classname)
classname
- The js class name
public java.lang.reflect.Method getFunctionMethod(java.lang.Class clazz, java.lang.String functionName)
clazz
- The actual class to use as referencefunctionName
- The function to find the method for
public java.lang.reflect.Method getFunctionMethod(java.lang.String classname, java.lang.String functionName)
classname
- The name of the class to work withfunctionName
- The function to find the method for
public static java.util.Map getHtmlJavaScriptMapping()
public static JavaScriptConfiguration getInstance(BrowserVersion browserVersion)
BrowserVersion
.
This method is synchronized to allow multithreaded access to the Javascript configuration.
browserVersion
- The BrowserVersion
BrowserVersion
public java.lang.reflect.Method getPropertyReadMethod(java.lang.Class clazz, java.lang.String propertyName)
clazz
- The actual class to use as referencepropertyName
- The property to find the getter for
public java.lang.reflect.Method getPropertyReadMethod(java.lang.String classname, java.lang.String propertyName)
classname
- The name of the class to work withpropertyName
- The property to find the getter for
public java.lang.reflect.Method getPropertyWriteMethod(java.lang.Class clazz, java.lang.String propertyName)
clazz
- The actual class to use as referencepropertyName
- The property to find the getter for
public java.lang.reflect.Method getPropertyWriteMethod(java.lang.String classname, java.lang.String propertyName)
classname
- The name of the class to work withpropertyName
- The property to find the setter for
public java.util.Set keySet()
public boolean propertyExists(java.lang.Class clazz, java.lang.String propertyName)
clazz
- The class the property is forpropertyName
- The name of the property
public boolean propertyExists(java.lang.String classname, java.lang.String propertyName)
classname
- The class the property is forpropertyName
- The name of the property
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |