Discussion: Design Questions
Design Questions
J. David BeutelWed Aug 17 12:41:55 HST 2005
- Previous message: Design Questions
- Next message: Design Questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
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
- Previous message: Design Questions
- Next message: Design Questions
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










