Source Code Cross Referenced for VariableTO.java in  » Project-Management » EmForce » org » emforge » xfer » 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 » Project Management » EmForce » org.emforge.xfer 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.emforge.xfer;
002:
003:        import javax.xml.bind.annotation.XmlTransient;
004:
005:        /** Transfer Object for Variable
006:         * Stored variable name and value, as well as set of additional flags 
007:         */
008:        public class VariableTO {
009:            public static final String[] LINK_PREFIXES = { "http://",
010:                    "https://", "mailto:", "ftp://", "file://", "notes://" };
011:
012:            private String label;
013:            private String displayLabel;
014:            private String value;
015:            private String displayValue;
016:
017:            private SelectValueTO[] selectValues;
018:
019:            /// flags
020:            private boolean readable;
021:            private boolean required;
022:            private boolean writable;
023:
024:            /** Default empty contructor */
025:            public VariableTO() {
026:
027:            }
028:
029:            /** Label of Variable */
030:            public String getLabel() {
031:                return label;
032:            }
033:
034:            public void setLabel(String i_label) {
035:                label = i_label;
036:            }
037:
038:            /** How label should be displayed to user */
039:            public String getDisplayLabel() {
040:                return displayLabel;
041:            }
042:
043:            public void setDisplayLabel(String i_displayLabel) {
044:                displayLabel = i_displayLabel;
045:            }
046:
047:            /** Value of variable */
048:            public String getValue() {
049:                return value;
050:            }
051:
052:            public void setValue(String i_value) {
053:                value = i_value;
054:            }
055:
056:            /** Display Value how Variable should be displayed to User */
057:            public String getDisplayValue() {
058:                return displayValue;
059:            }
060:
061:            public void setDisplayValue(String i_displayValue) {
062:                displayValue = i_displayValue;
063:            }
064:
065:            /** returns possible select values for variable */
066:            public SelectValueTO[] getSelectValues() {
067:                return selectValues;
068:            }
069:
070:            public void setSelectValues(SelectValueTO[] i_selectValues) {
071:                selectValues = i_selectValues;
072:            }
073:
074:            /** Is this variable should be displayed? */
075:            public boolean isReadable() {
076:                return readable;
077:            }
078:
079:            public void setReadable(boolean i_readable) {
080:                readable = i_readable;
081:            }
082:
083:            /** Is it required variable? */
084:            public boolean isRequired() {
085:                return required;
086:            }
087:
088:            public void setRequired(boolean i_required) {
089:                required = i_required;
090:            }
091:
092:            /** Is it writable variable? */
093:            public boolean isWritable() {
094:                return writable;
095:            }
096:
097:            public void setWritable(boolean i_writable) {
098:                writable = i_writable;
099:            }
100:
101:            /** Is Varialbe Read-Only? */
102:            @XmlTransient
103:            public boolean isReadOnly() {
104:                return !writable;
105:            }
106:
107:            /** Is variable contains link
108:             * 
109:             * @todo think - probabl we should move it into GUI level - not here
110:             * @return true if value of variable may be represented as link
111:             */
112:            @XmlTransient
113:            public boolean isLink() {
114:                for (String prefix : LINK_PREFIXES) {
115:                    if (value != null && value.startsWith(prefix)) {
116:                        return true;
117:                    }
118:                }
119:
120:                return false;
121:            }
122:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.