Java Doc for KeywordValueTable.java in  » J2EE » Enhydra-Application-Framework » com » lutris » util » 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 » J2EE » Enhydra Application Framework » com.lutris.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lutris.util.KeywordValueTable

All known Subclasses:   com.lutris.util.Config,  com.lutris.appserver.server.session.SessionData,  com.lutris.appserver.server.ApplicationData,
KeywordValueTable
public class KeywordValueTable implements java.io.Serializable(Code)
Class that implements a recursive keyword/value table. The key is a string that is restricted to be a valid Java identifier. That is, starting with an letter and containing letters or digits. The characters '_' and '$' are also allowed and are treated as letters. The value maybe any object. A keyword and its value are collectively referred to as a field The table is recursive. Values of class KeywordValueTable are referred to as sections. A field of a section maybe addressed from the parent object using a dot ('.') separated name path.
version:
   $Revision: 1.3 $
author:
   Mark Diekhans
since:
   Harmony 1.0



Constructor Summary
public  KeywordValueTable()
     Constructor.

Method Summary
public synchronized  booleancontainsKey(String keyword)
     Determine if the a field with the specified keyword exists.
Parameters:
  keyword - The keyword of the field.
public synchronized  Objectget(String keyword)
     Get the value of a field as an object.
Parameters:
  keyword - The keyword of the field.
public synchronized  Objectget(String keyword, Object defaultValue)
     Get the value of a field as an object, return a default if it does not exist.
Parameters:
  keyword - The keyword of the field.
public synchronized  KeywordValueTablegetSection(String keyword)
     Get the value of a section.
public synchronized  StringgetString(String keyword)
     Get the value of a field as a string
Parameters:
  keyword - The keyword of the field.
public synchronized  StringgetString(String keyword, String defaultValue)
     Get the value of a field as a string, return a default if it does not exist.
Parameters:
  keyword - The keyword of the field.
public synchronized  String[]keys()
     Get the keywords in the table.
public synchronized  String[]leafKeys()
     Recursively get the keywords for the entire table.
protected  KeywordValueTablenewSection()
     Allocate a new section.
public synchronized  voidremove(String keyword)
     Delete a field, if the field does not exist, the operation is ignored.
Parameters:
  keyword - The keyword of the field.
public synchronized  voidset(String keyword, Object value)
     Set the value of a field.
public synchronized  voidsetDefault(String keyword, Object defaultValue)
     Sets a default value for a keyword.
public synchronized  StringtoHtml()
     Convert to an Html representation.
public synchronized  StringtoString()
     Convert to a string.


Constructor Detail
KeywordValueTable
public KeywordValueTable()(Code)
Constructor.




Method Detail
containsKey
public synchronized boolean containsKey(String keyword) throws KeywordValueException(Code)
Determine if the a field with the specified keyword exists.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path. true if the code is in the table;false if its not.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal.



get
public synchronized Object get(String keyword) throws KeywordValueException(Code)
Get the value of a field as an object.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path. The object value or null if its not found.
exception:
  KeywordValueException - If the keyword is not syntactically legal or is a non-leaf element of the keyword is not a section.



get
public synchronized Object get(String keyword, Object defaultValue) throws KeywordValueException(Code)
Get the value of a field as an object, return a default if it does not exist.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path.
Parameters:
  defaultValue - The default value to return it the keyword does notexist. The object value or defaultValue if its not found.
exception:
  KeywordValueException - If the keyword is not syntactically legal or is a non-leaf element of the keyword is not a section.



getSection
public synchronized KeywordValueTable getSection(String keyword) throws KeywordValueException(Code)
Get the value of a section. The section is a value that is another KeywordValueTable object.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path. A reference to the section object or null if not found.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal or a non-leaf element of thekeyword is not a section or the value object is not aKeywordValueTable.



getString
public synchronized String getString(String keyword) throws KeywordValueException(Code)
Get the value of a field as a string
Parameters:
  keyword - The keyword of the field. This can be a simple keyword or a recursive, dot-seperated keyword path. The result of calling toString on the value objector null if its not found.
exception:
  KeywordValueException - If the keyword is not syntactically legal or is a non-leaf element of the keyword is not a section.



getString
public synchronized String getString(String keyword, String defaultValue) throws KeywordValueException(Code)
Get the value of a field as a string, return a default if it does not exist.
Parameters:
  keyword - The keyword of the field. This can be a simple keyword or a recursive, dot-seperated keyword path. The result of calling toString on the value objector defaultValue if its not found.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal or the value object is not a String.



keys
public synchronized String[] keys()(Code)
Get the keywords in the table. This is only the keywords at the top level, its doesn't recurse. An string array of the keywords.



leafKeys
public synchronized String[] leafKeys()(Code)
Recursively get the keywords for the entire table. This returns the full keyword of all leaf values. An string array of the keywords.



newSection
protected KeywordValueTable newSection()(Code)
Allocate a new section. The default implementation of this method returns a new KeywordValueTable object. A class derived from KeywordValueTable overrides this method to create a new object of the derived type. Sections are only allocated by this method. A reference to a new section.



remove
public synchronized void remove(String keyword) throws KeywordValueException(Code)
Delete a field, if the field does not exist, the operation is ignored.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal.



set
public synchronized void set(String keyword, Object value) throws KeywordValueException(Code)
Set the value of a field. If a keyword path is specified and the subsections do not exist, they are created. If a field other than a KeywordValueTable is one of the intermediate sections in the path, it will be deleted and replaced by a section.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path.
Parameters:
  value - The value to associate with the keyword. The value maynot be null.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal.



setDefault
public synchronized void setDefault(String keyword, Object defaultValue) throws KeywordValueException(Code)
Sets a default value for a keyword. This method only sets a value for the specified keyword if a value is not already set for that keyword. If a value is not set for the keyword, then if a keyword path is specified and the subsections do not exist, they are created. If a field other than a KeywordValueTable is one of the intermediate sections in the path, it will be deleted and replaced by a section.
Parameters:
  keyword - The keyword of the field. This can be a simple keywordor a recursive, dot-seperated keyword path.
Parameters:
  defaultValue - The default value to associate with the keyword.The default value may not be null. The default value is onlyset if the specified keyword doesnot already have a value associated with it.
exception:
  KeywordValueException - If the keyword is not syntacticallylegal.



toHtml
public synchronized String toHtml()(Code)
Convert to an Html representation. the generated Html.



toString
public synchronized String toString()(Code)
Convert to a string. Generate a string representation of this object.



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.