Discussion: [java-meetup] SDL
[java-meetup] SDL
Daniel LeuckSat Aug 13 17:25:09 HST 2005
- Previous message: Welcome to the SDL Developers' Mailing List
- Next message: [java-meetup] SDL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]
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>
- Previous message: Welcome to the SDL Developers' Mailing List
- Next message: [java-meetup] SDL
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ top page ]










