- Common ways to obtain OAVObjectType
private void myMethod () {OAVObjectType o =
IOAVState state;Object object;state.getType(object)
OAVAttributeType oAVAttributeType;oAVAttributeType.getType()
Map map;Object key;(OAVObjectType) map.get(key)
- Smart code suggestions by Codota
}
/** * Get the properties of an object. */ protected Collection getProperties(Object object, IContext context, boolean includemethods, boolean includefields) { Collection ret = new LinkedHashSet(); IOAVState state = (IOAVState)context; OAVObjectType type = state.getType(object); while(type!=null && !(type instanceof OAVJavaType)) { Collection props = type.getDeclaredAttributeTypes(); ret.addAll(props); type = type.getSupertype(); } return ret; }
/** * Get the properties of an object. */ protected Collection getProperties(Object object, IContext context, boolean includemethods, boolean includefields) { Collection ret = new LinkedHashSet(); IOAVState state = (IOAVState)context; OAVObjectType type = state.getType(object); while(type!=null && !(type instanceof OAVJavaType)) { Collection props = type.getDeclaredAttributeTypes(); ret.addAll(props); type = type.getSupertype(); } return ret; }
Collection attrs = type.getDeclaredAttributeTypes(); for(Iterator it=attrs.iterator(); it.hasNext(); )
while(type!=null) Iterator it = type.getDeclaredAttributeTypes().iterator(); while(it.hasNext())