public String getObjectProperty ( int groupID , int objectID , String propertyName , String def ) { if ( groupID >= 0 && groupID < objectGroups . size ( ) ) { ObjectGroup grp = ( ObjectGroup ) objectGroups . get ( groupID ) ; if ( objectID >= 0 && objectID < grp . objects . size ( ) ) { GroupObject object = ( GroupObject ) grp . objects . get ( objectID ) ; if ( object == null ) { return def ; } if ( object . props == null ) { return def ; } return object . props . getProperty ( propertyName , def ) ; } } return def ; }
Looks for a property with the given name and returns it s value . If no property is found def is returned .