|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.javascript.configuration.ClassConfiguration
public final class ClassConfiguration
A container for all the javascript configuration information.
Constructor Summary | |
---|---|
ClassConfiguration(java.lang.String classname,
java.lang.String implementingClass,
java.lang.String jsConstructor,
java.lang.String extendedClass,
java.lang.String htmlClass,
boolean jsObject)
Constructor |
Method Summary | |
---|---|
void |
addFunction(java.lang.String name)
Add the function to the configuration |
void |
addProperty(java.lang.String name,
boolean readable,
boolean writeable)
Add the property to the configuration |
boolean |
equals(java.lang.Object obj)
Test for value equality of the 2 objects |
java.util.Set |
functionKeys()
Return the set of keys for the defined functions |
java.lang.String |
getClassName()
|
java.lang.String |
getExtendedClass()
|
java.lang.reflect.Method |
getFunctionMethod(java.lang.String functionName)
Gets the method that implements the given function |
java.lang.String |
getHtmlClassname()
|
java.lang.reflect.Method |
getJsConstructor()
Gets the JavaScript constructor method in getLinkedClass() |
java.lang.Class |
getLinkedClass()
Gets the class of the Javascript host object |
java.lang.reflect.Method |
getPropertyReadMethod(java.lang.String propertyName)
Gets the method that implements the getter for the named property |
java.lang.reflect.Method |
getPropertyWriteMethod(java.lang.String propertyName)
Gets the method that implements the setter for the named property |
int |
hashCode()
Currently, this is the hashcode for the name. |
boolean |
isJsObject()
|
java.util.Set |
propertyKeys()
Return the set of keys for the defined properties. |
void |
setBrowser(java.lang.String propertyName,
java.lang.String browserName)
Set the browser information for this named property |
void |
setExtendedClass(java.lang.String extendedClass)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassConfiguration(java.lang.String classname, java.lang.String implementingClass, java.lang.String jsConstructor, java.lang.String extendedClass, java.lang.String htmlClass, boolean jsObject) throws java.lang.ClassNotFoundException
classname
- the name of the configuration class this entry is forimplementingClass
- - the fully qualified name of the class implementing this functionalityjsConstructor
- the constructor of method implementingClass
extendedClass
- - The name of the class that this class extendshtmlClass
- The name of the html class that this object supportsjsObject
- boolean flag for if this object is a JavaScript object
java.lang.ClassNotFoundException
- - If the implementing class is not foundMethod Detail |
---|
public void addFunction(java.lang.String name)
name
- - Name of the functionpublic void addProperty(java.lang.String name, boolean readable, boolean writeable)
name
- - Name of the propertyreadable
- - Flag for if the property is readablewriteable
- - Flag for if the property is writeablepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.
true
if the value of this object is the same as the obj
argument; false
otherwise.public java.util.Set functionKeys()
public java.lang.String getClassName()
public java.lang.String getExtendedClass()
public java.lang.reflect.Method getFunctionMethod(java.lang.String functionName)
functionName
- The name of the property
public java.lang.String getHtmlClassname()
public java.lang.reflect.Method getJsConstructor()
getLinkedClass()
public java.lang.Class getLinkedClass()
public java.lang.reflect.Method getPropertyReadMethod(java.lang.String propertyName)
propertyName
- The name of the property
public java.lang.reflect.Method getPropertyWriteMethod(java.lang.String propertyName)
propertyName
- The name of the property
public int hashCode()
hashCode
in class java.lang.Object
public boolean isJsObject()
public java.util.Set propertyKeys()
public void setBrowser(java.lang.String propertyName, java.lang.String browserName) throws java.lang.IllegalStateException
propertyName
- - Name of the property to setbrowserName
- - Browser name to set
java.lang.IllegalStateException
- - Property does not existpublic void setExtendedClass(java.lang.String extendedClass)
extendedClass
- The extendedClass to set.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |