Java Doc for FileSettings.java in  » UML » jrefactory » org » acm » seguin » 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 » UML » jrefactory » org.acm.seguin.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.acm.seguin.util.FileSettings

FileSettings
public class FileSettings implements Settings(Code)
Settings loaded from a file
author:
   Chris Seguin
author:
   Mike Atkinson



Constructor Summary
public  FileSettings(File express)
    
protected  FileSettings(String project, String app, String type)
    

Method Summary
public  booleangetBoolean(String key)
    
public  doublegetDouble(String key)
    
public  FilegetFile()
    
public  intgetInteger(String key)
    
public  EnumerationgetKeys()
    
public  StringgetProperty(String key)
    
public  StringgetProperty(String key, String def)
    
public static  FileSettingsgetRefactoryPrettySettings()
     Factory method to create FileSettings objects.
public static  FileSettingsgetRefactorySettings(String name)
     Factory method to create FileSettings objects.
public static  FilegetRefactorySettingsRoot()
    
public static  FileSettingsgetSettings(String project, String app, String name)
    
public static  FileSettingsgetSettings(String app, String name)
    
public static  FilegetSettingsRoot()
    
public  StringgetString(String key)
    
public  booleanisLocalProperty(String key)
    
public static  voidmain(String[] args)
    
public  voidremoveKey(String key)
    
public synchronized  voidsave()
    
public  voidsetContinuallyReload(boolean way)
    
protected  voidsetParent(FileSettings value)
    
public  voidsetReloadNow(boolean way)
    
public static  voidsetSettingsRoot(String dir)
    
public static  voidsetSettingsRoot(File dir)
    
public  voidsetString(String key, String value)
    
public  StringtoString()
    


Constructor Detail
FileSettings
public FileSettings(File express) throws MissingSettingsException(Code)
Constructor for the FileSettings object
Parameters:
  express - The file to use for loading
exception:
  MissingSettingsException - The file is not found



FileSettings
protected FileSettings(String project, String app, String type) throws MissingSettingsException(Code)
Constructor for the FileSettings object
Parameters:
  project - Description of the Parameter
Parameters:
  app - The application name
Parameters:
  type - The application type
exception:
  MissingSettingsException - The file is not found




Method Detail
getBoolean
public boolean getBoolean(String key)(Code)
Gets a boolean
Parameters:
  key - The code to look up The associated boolean



getDouble
public double getDouble(String key)(Code)
Gets a double
Parameters:
  key - The code to look up The associated double



getFile
public File getFile()(Code)
Return the file we are monitoring The file value



getInteger
public int getInteger(String key)(Code)
Gets a integer
Parameters:
  key - The code to look up The associated integer



getKeys
public Enumeration getKeys()(Code)
Gets the keys associated with this properties the iterator



getProperty
public String getProperty(String key)(Code)
Gets a string
Parameters:
  key - The code to look up The associated string



getProperty
public String getProperty(String key, String def)(Code)
Gets a string
Parameters:
  key - The code to look up
Parameters:
  def - Use this if the code is not found The associated string



getRefactoryPrettySettings
public static FileSettings getRefactoryPrettySettings()(Code)
Factory method to create FileSettings objects. Equivalent to getSettings("Refactory","pretty") A settings object
since:
   2.7.04



getRefactorySettings
public static FileSettings getRefactorySettings(String name)(Code)
Factory method to create FileSettings objects. Equivalent to getSettings("Refactory",name)
Parameters:
  name - The name of the specific settings A settings object
since:
   2.7.04



getRefactorySettingsRoot
public static File getRefactorySettingsRoot()(Code)
Gets the SettingsRoot for a Refactory application The SettingsRoot value
since:
   2.7.04



getSettings
public static FileSettings getSettings(String project, String app, String name)(Code)
Factory method to create FileSettings objects
Parameters:
  project - The name of the project
Parameters:
  app - The name of the application
Parameters:
  name - The name of the specific settings A settings object



getSettings
public static FileSettings getSettings(String app, String name)(Code)
Factory method to create FileSettings objects
Parameters:
  app - The name of the application
Parameters:
  name - The name of the specific settings A settings object



getSettingsRoot
public static File getSettingsRoot()(Code)
Gets the SettingsRoot attribute of the FileSettings class The SettingsRoot value



getString
public String getString(String key)(Code)
Gets a string
Parameters:
  key - The code to look up The associated string



isLocalProperty
public boolean isLocalProperty(String key)(Code)
Gets a string
Parameters:
  key - The code to look up The associated string



main
public static void main(String[] args)(Code)
Main program to test the FileSettings object
Parameters:
  args - the command line arguments



removeKey
public void removeKey(String key)(Code)
Description of the Method
Parameters:
  key - Description of the Parameter



save
public synchronized void save()(Code)
Stores all the settings from the file



setContinuallyReload
public void setContinuallyReload(boolean way)(Code)
Sets the ContinuallyReload attribute of the FileSettings object
Parameters:
  way - The new ContinuallyReload value



setParent
protected void setParent(FileSettings value)(Code)
Sets the Parent attribute of the FileSettings object
Parameters:
  value - The new Parent value



setReloadNow
public void setReloadNow(boolean way)(Code)
Sets the ReloadNow attribute of the FileSettings object
Parameters:
  way - The new ReloadNow value



setSettingsRoot
public static void setSettingsRoot(String dir)(Code)
Sets the root directory for settings files
Parameters:
  dir - The new SettingsRoot value



setSettingsRoot
public static void setSettingsRoot(File dir)(Code)
Sets the root directory for settings files
Parameters:
  dir - The new SettingsRoot value



setString
public void setString(String key, String value)(Code)
Sets a string
Parameters:
  key - The code to look up
Parameters:
  value - New value for the setting code.



toString
public String toString()(Code)
Description of the Method Description of the Return Value



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.