accessing type.properties
Joshua Paine <[email protected]> Wed, 02 Jul 2008 13:17:41 -0400
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
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?