Sculptor: representing a java.util.Iterator<String>

9 views
Skip to first unread message

Ron Smith

unread,
Mar 2, 2012, 12:00:41 PM3/2/12
to Fornax-Platform
Does anyone have a good way to represent an operation return type that
is a java.util.Iterator<String>?
For now I defined a BasicType wrapper class as a gap, then will add
the java.util.Iterator in the non-generated class.

BasicType StringsIterator {
gap
}

I could also return a java.util.Iterator but I'd prefer to use a
parameterized type.

Patrik Nordwall

unread,
Mar 2, 2012, 1:08:38 PM3/2/12
to fornax-...@googlegroups.com
Isn't it possible to define your own type?

javaType.StringIterator=java.util.Iterator<String>

http://fornax.itemis.de/confluence/display/fornax/7.+Developer%27s+Guide+%28CSC%29#7.Developer%27sGuide%28CSC%29-Types

/Patrik

Ron Smith

unread,
Mar 2, 2012, 6:14:19 PM3/2/12
to Fornax-Platform
Yes! How'd I miss that!

Thanks
Ron

On Mar 2, 12:08 pm, Patrik Nordwall <patrik.nordw...@gmail.com> wrote:
> Isn't it possible to define your own type?
>
> javaType.StringIterator=java.util.Iterator<String>
>
> http://fornax.itemis.de/confluence/display/fornax/7.+Developer%27s+Gu...
>
> /Patrik
Reply all
Reply to author
Forward
0 new messages