Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Data Range"
m (Attribute Value Datatype moved to Data Range) |
|||
Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
− | This page describes the concept of an [[ | + | This page describes the concept of an [[Data Range]]. |
== Definition == | == Definition == | ||
− | * The datatype | + | * The datatype and [optionally] constraints on the value of an [[Attribute]] |
− | * An [[ | + | * An [[Data Range]] MUST have a base XML Schema type (e.g. String) |
− | + | * An [[Data Range]] MAY include a set of constraint "facets" on its value(s). The names and semantics of these facets are taken from XML Schema. They include: | |
− | + | ||
− | * An [[ | + | |
** Value must be one of {"red", "green", "blue"} | ** Value must be one of {"red", "green", "blue"} | ||
** Syntax constraints (e.g. regular expression) | ** Syntax constraints (e.g. regular expression) | ||
** ranges (e.g. less than 5, more than 100) | ** ranges (e.g. less than 5, more than 100) | ||
− | |||
<to be completed> | <to be completed> | ||
== Examples == | == Examples == | ||
− | * An [[Attribute]] might have a value whose [[ | + | * An [[Attribute]] might have a value whose [[Data Range]] was defined in the [[Context]]s schema as "telephone number". This telephone number [[Data Range]] might have a base type of (XML Schema) string, but might also have an XML Schema ''pattern'' facet that constrained its syntax to be value in North America for auto-dialing (e.g. it is of the form (NNN)-NNN-NNNN) |
− | + | ||
== Predefined [[Attribute Value Datatype]]s == | == Predefined [[Attribute Value Datatype]]s == |
Revision as of 17:22, 12 February 2008
Contents
Introduction
This page describes the concept of an Data Range.
Definition
- The datatype and [optionally] constraints on the value of an Attribute
- An Data Range MUST have a base XML Schema type (e.g. String)
- An Data Range MAY include a set of constraint "facets" on its value(s). The names and semantics of these facets are taken from XML Schema. They include:
- Value must be one of {"red", "green", "blue"}
- Syntax constraints (e.g. regular expression)
- ranges (e.g. less than 5, more than 100)
<to be completed>
Examples
- An Attribute might have a value whose Data Range was defined in the Contexts schema as "telephone number". This telephone number Data Range might have a base type of (XML Schema) string, but might also have an XML Schema pattern facet that constrained its syntax to be value in North America for auto-dialing (e.g. it is of the form (NNN)-NNN-NNNN)
Predefined Attribute Value Datatypes
The following are predefined in HOWL: