Java Doc for FxStructureOption.java in  » J2EE » fleXive » com » flexive » shared » structure » 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 » fleXive » com.flexive.shared.structure 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.shared.structure.FxStructureOption

FxStructureOption
public class FxStructureOption implements Serializable(Code)
Option for structure elements (groups, properties, assignments)
author:
   Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)


Field Summary
final public static  StringOPTION_HTML_EDITOR
    
final public static  StringOPTION_MULTILANG
    
final public static  StringOPTION_MULTILINE
    
final public static  StringOPTION_SEARCHABLE
    
final public static  StringOPTION_SHOW_OVERVIEW
    
final public static  StringVALUE_FALSE
    
final public static  StringVALUE_TRUE
    
protected  booleanoverrideable
    

Constructor Summary
public  FxStructureOption(String key, boolean overrideable, boolean set, String value)
    
public  FxStructureOption(FxStructureOption o)
    

Method Summary
public static  voidclearOption(List<FxStructureOption> options, String key)
    
public static  List<FxStructureOption>cloneOptions(List<FxStructureOption> options)
    
public  booleanequals(Object o)
    
public static  List<FxStructureOption>getEmptyOptionList(int capacity)
    
public  StringgetKey()
    
public static  FxStructureOptiongetOption(String key, List<FxStructureOption> options)
     Get an option entry for the given key, if the key is invalid or not found a FxStructureOption object will be returned with set set to false, overrideable set to false and value set to an empty String.
public static  List<FxStructureOption>getUnmodifieableOptions(List<FxStructureOption> options)
    
public  StringgetValue()
    
public static  booleanhasOption(String key, List<FxStructureOption> options)
    
public  inthashCode()
    
public  booleanisOverrideable()
    
public  booleanisSet()
    
public  booleanisValueTrue()
    
public static  voidsetOption(List<FxStructureOption> options, String key, boolean overrideable, String value)
    
public static  voidsetOption(List<FxStructureOption> options, String key, boolean overrideable, boolean value)
    

Field Detail
OPTION_HTML_EDITOR
final public static String OPTION_HTML_EDITOR(Code)



OPTION_MULTILANG
final public static String OPTION_MULTILANG(Code)



OPTION_MULTILINE
final public static String OPTION_MULTILINE(Code)



OPTION_SEARCHABLE
final public static String OPTION_SEARCHABLE(Code)



OPTION_SHOW_OVERVIEW
final public static String OPTION_SHOW_OVERVIEW(Code)



VALUE_FALSE
final public static String VALUE_FALSE(Code)



VALUE_TRUE
final public static String VALUE_TRUE(Code)



overrideable
protected boolean overrideable(Code)




Constructor Detail
FxStructureOption
public FxStructureOption(String key, boolean overrideable, boolean set, String value)(Code)
Ctor
Parameters:
  key - key identifying the option
Parameters:
  overrideable - is the option overridable in assignments
Parameters:
  set - is the option set? (non-existing options are returned as not-set options!)
Parameters:
  value - the options value



FxStructureOption
public FxStructureOption(FxStructureOption o)(Code)
Copy Constructor
Parameters:
  o - an FxStructureOption




Method Detail
clearOption
public static void clearOption(List<FxStructureOption> options, String key)(Code)
Clear the option with the given key - removing it from the list if it exists
Parameters:
  options - list options to clear the option for
Parameters:
  key - key of the option to remove



cloneOptions
public static List<FxStructureOption> cloneOptions(List<FxStructureOption> options)(Code)
Get a copy of the a list of options
Parameters:
  options - list to clone cloned list of options



equals
public boolean equals(Object o)(Code)
Checks for equality if the option's values equal this



getEmptyOptionList
public static List<FxStructureOption> getEmptyOptionList(int capacity)(Code)
Get a list of empty options
Parameters:
  capacity - desired capacity list of empty options



getKey
public String getKey()(Code)
Get the option key option key



getOption
public static FxStructureOption getOption(String key, List<FxStructureOption> options)(Code)
Get an option entry for the given key, if the key is invalid or not found a FxStructureOption object will be returned with set set to false, overrideable set to false and value set to an empty String.
Parameters:
  key - option key
Parameters:
  options - the available options the found option or an object that indicates that the option is not set



getUnmodifieableOptions
public static List<FxStructureOption> getUnmodifieableOptions(List<FxStructureOption> options)(Code)
Convert a list of options to an unmodifieable list
Parameters:
  options - list to convert unmodifieable list of options



getValue
public String getValue()(Code)
Get the value assigned to the option value assigned to the option



hasOption
public static boolean hasOption(String key, List<FxStructureOption> options)(Code)
Check if an option is set for the requested key
Parameters:
  key - option key
Parameters:
  options - the available options if an option is set for the requested key



hashCode
public int hashCode()(Code)



isOverrideable
public boolean isOverrideable()(Code)
Is the option overrideable (in assignments)? option overrideable (in assignments)?



isSet
public boolean isSet()(Code)
Is the option set, will return false if an unknown option is requested if option is set, will return false if an unknown option is requested



isValueTrue
public boolean isValueTrue()(Code)
Convenience method to check if value is set to true if value is set to true



setOption
public static void setOption(List<FxStructureOption> options, String key, boolean overrideable, String value)(Code)
Set or add a String value in a list of options
Parameters:
  options - list of existing options
Parameters:
  key - option key
Parameters:
  overrideable - should the option be overrideable?
Parameters:
  value - String value to set for the option



setOption
public static void setOption(List<FxStructureOption> options, String key, boolean overrideable, boolean value)(Code)
Set or add a boolean value in a list of options
Parameters:
  options - list of existing options
Parameters:
  key - option key
Parameters:
  overrideable - should the option be overrideable?
Parameters:
  value - boolean value to set for the option (will be converted internally to a String)



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.