Top Graphic
Ikayzo.org LogoHomeMissionCriteriaPeopleNews
EnglishJapanese

What's New
SDL
08.11.05 SDL is voted in by the review board.

Ikayzo.org Launch
06.24.05 Ikayzo.org, a global professional open source community is launched!

Beanshell
06.10.05 Beanshell joins BeanShell on the Ikayzo.org project list.
OSS Sites
Other great open source sites
  SourceForge
  CodeHaus
Discussion: Design Questions

Design Questions

J. David Beutel
Wed Aug 17 12:41:55 HST 2005


Daniel Leuck wrote:

> (!=null)
>

This might be RTFM, but what does a null string look like in an SDL 
file? Hopefully no Oracle-ish confusion with empty strings.

>
> For SDLS
>
> Example:
>
> things required {
>
> values double (>=2,<5) int (>0) string (~=”java.*”, !=null) char... 
> (!=null)
>
> attribute required “name” string (!=null)
>
> attribute required “size” int (>0, <=100)
>
> attribute optional “weight” int (>=0)
>
> attribute optional “favorite_char” char (‘a’ | ‘b’ | ‘c’)
>
> }
> Defines a required tag “things”...
>

This looks good for simple cases, but defining types would be useful for 
complex schemas. Suppose you have two tags, "favorite" and "worst", both 
of which follow the "things" constraints. Using only literal types would 
get redundant.

Cheers,
11011011



Query: [How to search]

Display: Description: Sort: