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: [java-meetup] SDL

[java-meetup] SDL

Daniel Leuck
Sat Aug 13 17:25:09 HST 2005


Hi Seth,

 

> Ah, that certainly clears it up.  Once I know that order is important,
> it makes things more clear.

 

After reading your question last night I added a "Tag Data Structure"
section to the language guide that explains how things are structured and
provides examples.

 

> So how do I handle optional values?  I'm assuming that optional values
> _have_ to be attributes?
> 
> How does my program know the diff between:
> 
> java "com.example.classname" "foo" "bar"
> 
> and
> 
> java "com.example.classname" "bar"
> 
> where "bar" and "foo" are semantically different?

 

You could have optional values or attributes.  Think of the values and
attributes of a tag like a method call on a method with a fixed set of
parameters with types and optionally a varags list (all the same type but
with n elements) at the end.   Right now you have to check this
programmatically, but in SDL 2.0 we will introduce SDLS (SDL Schema) which
will allow you to specify:

 

For Tag Values:

   Typed parameters

   A variable length argument list at the end (like Object... in Java or
params object[] in C#)

For Tag Attributes

   Required attributes

   Optional attributes

For Values and Attributes

   Ranges for scalars

   Regular expressions for Strings

   Possibly other types of constraints

 

Dan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20050813/5a719d76/attachment.htm>


Query: [How to search]

Display: Description: Sort: