Datatypes

From UG

(Difference between revisions)
Jump to: navigation, search
(Created page with 'Category: UI == Intro == Common CT2 datatypes: == Numbers == === Integer === Examples: * 23 * 1000 * 0 * -7896 === Positive Integer === * 23 * 1000 * 0 === Decimal =…')
(Intro)
 
(13 intermediate revisions not shown)
Line 1: Line 1:
-
[[Category: UI]]
+
[[Category:Data Model]]
== Intro ==
== Intro ==
-
Common CT2 datatypes:
+
Datatypes are defined base on requirements, properties of the class of objects.
 +
 
 +
This encompasses "constraints". Normally system validates these.
 +
 
 +
In ZK there are separate widgets for some datatypes: "intbox", "decimalbox", etc.
 +
 
 +
'''!''' This could/should be defined often "before" the UI - this is a property of class of corresponding object. So in this case link should be provided instead of repeating definition.
 +
 
 +
When defining widgets there is a required attribute to be defined: [[datatype/format]].
 +
 
 +
 
 +
Common CT2 datatypes - see:
 +
 
 +
* [[#Numbers]]
 +
* [[#Strings]]
== Numbers ==
== Numbers ==
-
=== Integer ===
+
=== integer ===
Examples:  
Examples:  
Line 15: Line 29:
* -7896
* -7896
-
=== Positive Integer ===
+
=== positive integer ===
* 23
* 23
Line 21: Line 35:
* 0
* 0
-
=== Decimal ===
+
=== decimal ===
Also called (floating-point numbers)
Also called (floating-point numbers)
Line 30: Line 44:
* 1.9083496
* 1.9083496
* 100865.08E23
* 100865.08E23
 +
 +
See also [[precision]]
== Strings ==
== Strings ==
 +
 +
=== alpha ===
 +
 +
Letters A to Z.
=== alphanumeric ===
=== alphanumeric ===
Line 43: Line 63:
* 897
* 897
-
=== Unicode ===
+
=== unicode ===
Examples:
Examples:
Line 50: Line 70:
* русский алфавит
* русский алфавит
-
=== ASCII ===
+
=== ascii ===
Examples:
Examples:
Line 62: Line 82:
== Other datatypes examples ==
== Other datatypes examples ==
 +
 +
Everything outside of common/standard is not a type really. It is a string of certain format/constraint.
 +
 +
Examples:
 +
 +
* Airline 3 Letter Numeric Code, possible value: 053
 +
* Master Airway bill, possible value: 222-7824-5587
 +
 +
== Dates and Time ==
 +
 +
=== CT2 date ===
 +
 +
This date must be in the following format:
 +
 +
<Day>-<Month(first 3 letters)>-<Year>
 +
 +
Example: 17-Jan-2010

Current revision as of 19:27, 13 February 2010

Contents

[edit] Intro

Datatypes are defined base on requirements, properties of the class of objects.

This encompasses "constraints". Normally system validates these.

In ZK there are separate widgets for some datatypes: "intbox", "decimalbox", etc.

! This could/should be defined often "before" the UI - this is a property of class of corresponding object. So in this case link should be provided instead of repeating definition.

When defining widgets there is a required attribute to be defined: datatype/format.


Common CT2 datatypes - see:

[edit] Numbers

[edit] integer

Examples:

  • 23
  • 1000
  • 0
  • -7896

[edit] positive integer

  • 23
  • 1000
  • 0

[edit] decimal

Also called (floating-point numbers)

Examples:

  • 2.3
  • 1.0
  • 1.9083496
  • 100865.08E23

See also precision

[edit] Strings

[edit] alpha

Letters A to Z.

[edit] alphanumeric

The alphanumeric character set consists of the numbers 0 to 9 and letters A to Z.

Examples:

  • hgTF9087GggyYg
  • book
  • 897

[edit] unicode

Examples:

  • อักษรไทย
  • русский алфавит

[edit] ascii

Examples:

  • jhg&$&^*&@dceUH!
  • Hello!
  • #234
  • 12-34-98698690

http://en.wikipedia.org/wiki/ASCII

[edit] Other datatypes examples

Everything outside of common/standard is not a type really. It is a string of certain format/constraint.

Examples:

  • Airline 3 Letter Numeric Code, possible value: 053
  • Master Airway bill, possible value: 222-7824-5587

[edit] Dates and Time

[edit] CT2 date

This date must be in the following format:

<Day>-<Month(first 3 letters)>-<Year>

Example: 17-Jan-2010

Personal tools