/** * Get the types for fields in a class * @return the map of fieldName -> field type */ public Map<String, Class<?>> getFieldTypes() { return getFieldTypes(null); }
/** * Get the types for fields in a class * @return the map of fieldName -> field type */ public Map<String, Class<?>> getFieldTypes() { return getFieldTypes(null); }
/** * Get the types of the fields of a specific class type <br/> * returns the method names as fields (without the "get"/"is" part and camelCased) * @param type any class * @param filter (optional) indicates the fields to return the types for, can be null for defaults * @return a map of field name -> class type */ public Map<String, Class<?>> getFieldTypes(Class<?> type, FieldsFilter filter) { ClassFields<?> cf = analyzeClass(type, findFieldFindMode(filter)); Map<String, Class<?>> types = cf.getFieldTypes(filter); return types; }
/** * Get the types of the fields of a specific class type <br/> * returns the method names as fields (without the "get"/"is" part and camelCased) * @param type any class * @param filter (optional) indicates the fields to return the types for, can be null for defaults * @return a map of field name -> class type */ public Map<String, Class<?>> getFieldTypes(Class<?> type, FieldsFilter filter) { ClassFields<?> cf = analyzeClass(type, findFieldFindMode(filter)); Map<String, Class<?>> types = cf.getFieldTypes(filter); return types; }
Map<String, Class<?>> readTypes = cf.getFieldTypes(FieldsFilter.SERIALIZABLE); Map<String, Class<?>> writeTypes = cf.getFieldTypes(FieldsFilter.WRITEABLE); HashSet<String> requiredFieldNames = new HashSet<String>(cf.getFieldNamesWithAnnotation(EntityFieldRequired.class));
Map<String, Class<?>> readTypes = cf.getFieldTypes(FieldsFilter.SERIALIZABLE); Map<String, Class<?>> writeTypes = cf.getFieldTypes(FieldsFilter.WRITEABLE); HashSet<String> requiredFieldNames = new HashSet<String>(cf.getFieldNamesWithAnnotation(EntityFieldRequired.class)); Map<String, Class<?>> entityTypes = new HashMap<String, Class<?>>(readTypes);
Map<String, Class<?>> readTypes = cf.getFieldTypes(FieldsFilter.SERIALIZABLE); Map<String, Class<?>> writeTypes = cf.getFieldTypes(FieldsFilter.WRITEABLE); HashSet<String> requiredFieldNames = new HashSet<String>(cf.getFieldNamesWithAnnotation(EntityFieldRequired.class));
Map<String, Class<?>> readTypes = cf.getFieldTypes(FieldsFilter.SERIALIZABLE); Map<String, Class<?>> writeTypes = cf.getFieldTypes(FieldsFilter.WRITEABLE); HashSet<String> requiredFieldNames = new HashSet<String>(cf.getFieldNamesWithAnnotation(EntityFieldRequired.class)); Map<String, Class<?>> entityTypes = new HashMap<String, Class<?>>(readTypes);
Map<String, Class<?>> types = cf.getFieldTypes(filter); for (String name : types.keySet()) { if (ClassFields.FIELD_CLASS.equals(name)) {
Map<String, Class<?>> types = cf.getFieldTypes(filter); for (String name : types.keySet()) { if (ClassFields.FIELD_CLASS.equals(name)) {