Java Doc for JavaScriptConfiguration.java in  » Testing » htmlunit » com » gargoylesoftware » htmlunit » javascript » configuration » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » htmlunit » com.gargoylesoftware.htmlunit.javascript.configuration 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration

JavaScriptConfiguration
final public class JavaScriptConfiguration (Code)
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.
version:
   $Revision: 2139 $
author:
   Mike Bowler
author:
   Chris Erskine
author:
   Ahmed Ashour


Field Summary
final public static  intDISABLED
    
final public static  intENABLED
    
final public static  intNOT_FOUND
    


Method Summary
protected  booleanclassConfigEquals(String classname, ClassConfiguration config)
     Test to see if the supplied configuration matches for the parsed configuration for the named class This is a method for testing.
static  JavaScriptConfigurationgetAllEntries()
     Return the configuration that has all entries.
public  BrowserVersiongetBrowser()
    
public  ClassConfigurationgetClassConfiguration(String classname)
    
protected  ClassgetClassObject(String classname)
     Return the class for the given class name
Parameters:
  classname - The classname that you want the implementing class for.
public  MethodgetFunctionMethod(Class clazz, String functionName)
     Get the method that implements the setter for the given property based upon the class object.
public  MethodgetFunctionMethod(String classname, String functionName)
    
public static synchronized  MapgetHtmlJavaScriptMapping()
     Return an immutable map containing the html to javascript mappings.
public static synchronized  JavaScriptConfigurationgetInstance(BrowserVersion browserVersion)
     Return the instance that represents the configuration for the specified BrowserVersion .
public  MethodgetPropertyReadMethod(Class clazz, String propertyName)
     Get the method that implements the getter for the given property based upon the class object.
public  MethodgetPropertyReadMethod(String classname, String propertyName)
    
public  MethodgetPropertyWriteMethod(Class clazz, String propertyName)
     Get the method that implements the setter for the given property based upon the class object.
public  MethodgetPropertyWriteMethod(String classname, String propertyName)
    
protected static  booleanisDocumentLoaded()
    
protected  IteratorkeyIterator()
    
public  SetkeySet()
     Get the set of keys for the class configurations.
protected static  voidloadConfiguration()
     Get the configuration file and make it an input reader and then pass to the method to read the file.
protected static  voidloadConfiguration(Reader configurationReader)
    
public  booleanpropertyExists(Class clazz, String propertyName)
     Check to see if there is an entry for the given property.
public  booleanpropertyExists(String classname, String propertyName)
     Check to see if there is an entry for the given property.
protected static  voidresetClassForTesting()
     Reset the this class to it's initial state.
protected static  voidsetXmlDocument(Document document)
    

Field Detail
DISABLED
final public static int DISABLED(Code)
Constant indicating that this function/property is not used by the specified browser version



ENABLED
final public static int ENABLED(Code)
Constant indicating that this function/property is used by the specified browser version



NOT_FOUND
final public static int NOT_FOUND(Code)
Constant indicating that this function/property is not defined in the configuration file





Method Detail
classConfigEquals
protected boolean classConfigEquals(String classname, ClassConfiguration config)(Code)
Test to see if the supplied configuration matches for the parsed configuration for the named class This is a method for testing.
Parameters:
  classname - - the parsed classname to test
Parameters:
  config - - the expected configuration true if they match



getAllEntries
static JavaScriptConfiguration getAllEntries()(Code)
Return the configuration that has all entries. No constraints are put on the returned entries. The instance containing all entries from the configuration file.



getBrowser
public BrowserVersion getBrowser()(Code)
Returns the browser.



getClassConfiguration
public ClassConfiguration getClassConfiguration(String classname)(Code)
Get the class configuration for the supplied javascript class name
Parameters:
  classname - The js class name ClassConfiguration



getClassObject
protected Class getClassObject(String classname)(Code)
Return the class for the given class name
Parameters:
  classname - The classname that you want the implementing class for. For testing only. Class



getFunctionMethod
public Method getFunctionMethod(Class clazz, String functionName)(Code)
Get the method that implements the setter for the given property based upon the class object.
Parameters:
  clazz - The actual class to use as reference
Parameters:
  functionName - The function to find the method for Method



getFunctionMethod
public Method getFunctionMethod(String classname, String functionName)(Code)
Return the method that implements the given function in the class for the given class
Parameters:
  classname - The name of the class to work with
Parameters:
  functionName - The function to find the method for Method



getHtmlJavaScriptMapping
public static synchronized Map getHtmlJavaScriptMapping()(Code)
Return an immutable map containing the html to javascript mappings. Keys are java classes for the various html classes (ie HtmlInput.class) and the values are the javascript class names (ie "Anchor"). the mappings



getInstance
public static synchronized JavaScriptConfiguration getInstance(BrowserVersion browserVersion)(Code)
Return the instance that represents the configuration for the specified BrowserVersion . This method is synchronized to allow multithreaded access to the Javascript configuration.
Parameters:
  browserVersion - The BrowserVersion The instance for the specified BrowserVersion



getPropertyReadMethod
public Method getPropertyReadMethod(Class clazz, String propertyName)(Code)
Get the method that implements the getter for the given property based upon the class object.
Parameters:
  clazz - The actual class to use as reference
Parameters:
  propertyName - The property to find the getter for Method



getPropertyReadMethod
public Method getPropertyReadMethod(String classname, String propertyName)(Code)
Return the method that implements the get function for in the class for the given class
Parameters:
  classname - The name of the class to work with
Parameters:
  propertyName - The property to find the getter for Method



getPropertyWriteMethod
public Method getPropertyWriteMethod(Class clazz, String propertyName)(Code)
Get the method that implements the setter for the given property based upon the class object.
Parameters:
  clazz - The actual class to use as reference
Parameters:
  propertyName - The property to find the getter for Method



getPropertyWriteMethod
public Method getPropertyWriteMethod(String classname, String propertyName)(Code)
Return the method that implements the set function in the class for the given class
Parameters:
  classname - The name of the class to work with
Parameters:
  propertyName - The property to find the setter for Method



isDocumentLoaded
protected static boolean isDocumentLoaded()(Code)
Test for a configuration having been loaded for testing boolean - true if the XmlDocument has been loaded;



keyIterator
protected Iterator keyIterator()(Code)
Get an iterator over the keys in the configuration - For testing only Iterator



keySet
public Set keySet()(Code)
Get the set of keys for the class configurations. Set



loadConfiguration
protected static void loadConfiguration()(Code)
Get the configuration file and make it an input reader and then pass to the method to read the file.



loadConfiguration
protected static void loadConfiguration(Reader configurationReader)(Code)
Load the configuration from a supplied Reader
Parameters:
  configurationReader - - A reader pointing to the configuration



propertyExists
public boolean propertyExists(Class clazz, String propertyName)(Code)
Check to see if there is an entry for the given property.
Parameters:
  clazz - The class the property is for
Parameters:
  propertyName - The name of the property boolean True if the property exists



propertyExists
public boolean propertyExists(String classname, String propertyName)(Code)
Check to see if there is an entry for the given property.
Parameters:
  classname - The class the property is for
Parameters:
  propertyName - The name of the property boolean True if the property exists



resetClassForTesting
protected static void resetClassForTesting()(Code)
Reset the this class to it's initial state. This method is used for testing only.



setXmlDocument
protected static void setXmlDocument(Document document)(Code)
Set the document configuration for testing
Parameters:
  document - - The configuration document



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.