Re: accessing type.properties

"Breton Slivka" <[email protected]> Thu, 3 Jul 2008 11:49:08 +1000
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
Out of curiosity, why do you need them in the original order?

On Thu, Jul 3, 2008 at 3:17 AM, Joshua Paine <[email protected]> wrote:
> You can get all your object's type's properties like this:
>
> function getTypeProperties(){
>   var hash = {}, name, names, props;
>   props = app.getPrototype(this._prototype.toString())
>     .getTypeProperties();
>   names = props.propertyNames();
>   while(names.hasNext() && (name = names.next()))
>     hash[name] = props.getProperty(name);
>   return hash;
> }
>
> Unfortunately the original getTypeProperties returns a hash-like
> structure, so as far as I can tell there's no way to get them in order.
> Does anyone know if there is a way to get the types properties in their
> original order without reading the file?
>
>
> _______________________________________________
> Helma-user mailing list
> [email protected]
> http://helma.org/mailman/listinfo/helma-user
>