Java Doc for Value.java in  » ERP-CRM-Financial » csheets » csheets » core » 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 » ERP CRM Financial » csheets » csheets.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   csheets.core.Value

Value
public class Value implements Comparable<Value>,Serializable(Code)
A typed value that a cell can contain.
author:
   Einar Pehrson

Inner Class :public enum Type


Constructor Summary
public  Value()
     Creates a null value.
public  Value(Number number)
     Creates a numeric value.
public  Value(String text)
     Creates a text value.
public  Value(Boolean booleanValue)
     Creates a boolean value.
public  Value(Date date)
     Creates a date value.
public  Value(Value[] matrix)
     Creates a one-dimensional matrix value (vector).
public  Value(Value[][] matrix)
     Creates a two-dimensional matrix value.
public  Value(Throwable error)
     Creates an error value.

Method Summary
public  intcompareTo(Value otherValue)
     Compares this value with the given value for order.
public  booleanequals(Object other)
     Returns whether the other object is an identical value .
final public  TypegetType()
     Returns the type of the value.
final public  booleanisOfType(Type type)
     Returns whether the value is of the given type.
public static  ValueparseBooleanValue(String value)
     Attempts to parse a boolean from the given string.
public static  ValueparseDateValue(String value)
     Attempts to parse a date, time or date/time from the given string.
public static  ValueparseNumericValue(String value)
     Attempts to parse a number from the given string.
public static  ValueparseValue(String value, Type... types)
     Attempts to parse a value from the given string.
final public  ObjecttoAny()
     Returns the value in untyped form.
public  BooleantoBoolean()
     Returns a boolean representation of the value.
public  DatetoDate()
     Returns a date representation of the value.
public  doubletoDouble()
     Returns a primitive numeric representation of the value.
public  ThrowabletoError()
     Returns an error representation of the value.
public  Value[][]toMatrix()
     Returns a matrix representation of the value.
public  NumbertoNumber()
     Returns a numeric representation of the value.
public  StringtoString()
     Returns a string representation of the value.
public  StringtoString(Format format)
     Returns a string representation of the value, using the given date or number format.
public  StringtoText()
     Returns a text representation of the value.


Constructor Detail
Value
public Value()(Code)
Creates a null value.



Value
public Value(Number number)(Code)
Creates a numeric value.
Parameters:
  number - the number of the value



Value
public Value(String text)(Code)
Creates a text value.
Parameters:
  text - the text of the value



Value
public Value(Boolean booleanValue)(Code)
Creates a boolean value.
Parameters:
  booleanValue - the boolean of the value



Value
public Value(Date date)(Code)
Creates a date value.
Parameters:
  date - the date of the value



Value
public Value(Value[] matrix)(Code)
Creates a one-dimensional matrix value (vector).
Parameters:
  matrix - the value vector



Value
public Value(Value[][] matrix)(Code)
Creates a two-dimensional matrix value.
Parameters:
  matrix - the value matrix



Value
public Value(Throwable error)(Code)
Creates an error value.
Parameters:
  error - the error of the value




Method Detail
compareTo
public int compareTo(Value otherValue)(Code)
Compares this value with the given value for order.
Parameters:
  otherValue - the value to compare to a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.



equals
public boolean equals(Object other)(Code)
Returns whether the other object is an identical value .
Parameters:
  other - the object to check for equality true if the objects are equal



getType
final public Type getType()(Code)
Returns the type of the value. the type of the value



isOfType
final public boolean isOfType(Type type)(Code)
Returns whether the value is of the given type.
Parameters:
  type - the type of value to check against whether the value is of the given type



parseBooleanValue
public static Value parseBooleanValue(String value) throws ParseException(Code)
Attempts to parse a boolean from the given string.
Parameters:
  value - the value the boolean value that was found
throws:
  IllegalValueTypeException - if no boolean value was found



parseDateValue
public static Value parseDateValue(String value) throws ParseException(Code)
Attempts to parse a date, time or date/time from the given string.
Parameters:
  value - the value the date value that was found
throws:
  IllegalValueTypeException - if no date value was found



parseNumericValue
public static Value parseNumericValue(String value) throws ParseException(Code)
Attempts to parse a number from the given string.
Parameters:
  value - the value the numeric value that was found
throws:
  IllegalValueTypeException - if no numeric value was found



parseValue
public static Value parseValue(String value, Type... types)(Code)
Attempts to parse a value from the given string. The value is matched against the given types in order. If no types are supplied, conversion will be attempted to boolean, date and numeric values. If no other type matches, the value will be used as a string.
Parameters:
  value - the value
Parameters:
  types - the types for which parsing should be attempted



toAny
final public Object toAny()(Code)
Returns the value in untyped form. the value



toBoolean
public Boolean toBoolean() throws IllegalValueTypeException(Code)
Returns a boolean representation of the value. a boolean representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



toDate
public Date toDate() throws IllegalValueTypeException(Code)
Returns a date representation of the value. a date representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



toDouble
public double toDouble() throws IllegalValueTypeException(Code)
Returns a primitive numeric representation of the value. a primitive numeric representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



toError
public Throwable toError() throws IllegalValueTypeException(Code)
Returns an error representation of the value. an error representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



toMatrix
public Value[][] toMatrix() throws IllegalValueTypeException(Code)
Returns a matrix representation of the value. a matrix representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



toNumber
public Number toNumber() throws IllegalValueTypeException(Code)
Returns a numeric representation of the value. a numeric representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



toString
public String toString()(Code)
Returns a string representation of the value. a string representation of the value



toString
public String toString(Format format)(Code)
Returns a string representation of the value, using the given date or number format.
Parameters:
  format - the format to use when converting the value a string representation of the value



toText
public String toText() throws IllegalValueTypeException(Code)
Returns a text representation of the value. a text representation of the value
throws:
  IllegalValueTypeException - if the value cannot be converted to this type



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.