public PropertiesDescription initializePropMapping(Class<?> classSchem) { PropertiesDescription propMap = new PropertiesDescription(); Field[] fields = classSchem.getFields(); String propName = null; for (Field field : fields) { if (field.isAnnotationPresent(PropertyType.class)) { try { propName = (String) field.get(propName); } catch (Exception e) { throw new IllegalArgumentException( "couldn't read one type declaration, please check accessibility and declaration of fields annoted in " + classSchem.getName(), e); } PropertyType propType = field.getAnnotation(PropertyType.class); propMap.addNewProperty(propName, propType); } } return propMap; }
for (Map.Entry<String, PropertyType> entry : structuredType.getDefinedProperties().entrySet()) pm.addNewProperty(entry.getKey(), entry.getValue());
|| pt.type() == Types.DefinedType) xsf.getPropertyDefinition().addNewProperty(pname, pt);
public PropertiesDescription initializePropMapping(Class<?> classSchem) { PropertiesDescription propMap = new PropertiesDescription(); Field[] fields = classSchem.getFields(); String propName = null; for (Field field : fields) { if (field.isAnnotationPresent(PropertyType.class)) { try { propName = (String) field.get(propName); } catch (Exception e) { throw new IllegalArgumentException( "couldn't read one type declaration, please check accessibility and declaration of fields annoted in " + classSchem.getName(), e); } PropertyType propType = field.getAnnotation(PropertyType.class); propMap.addNewProperty(propName, propType); } } return propMap; }
public PropertiesDescription initializePropMapping(Class<?> classSchem) { PropertiesDescription propMap = new PropertiesDescription(); Field[] fields = classSchem.getFields(); String propName = null; for (Field field : fields) { if (field.isAnnotationPresent(PropertyType.class)) { try { propName = (String) field.get(propName); } catch (Exception e) { throw new IllegalArgumentException( "couldn't read one type declaration, please check accessibility and declaration of fields annoted in " + classSchem.getName(), e); } PropertyType propType = field.getAnnotation(PropertyType.class); propMap.addNewProperty(propName, propType); } } return propMap; }
for (Map.Entry<String, PropertyType> entry : structuredType.getDefinedProperties().entrySet()) pm.addNewProperty(entry.getKey(), entry.getValue());
for (Map.Entry<String, PropertyType> entry : structuredType.getDefinedProperties().entrySet()) pm.addNewProperty(entry.getKey(), entry.getValue());
|| pt.type() == Types.DefinedType) xsf.getPropertyDefinition().addNewProperty(pname, pt);
|| pt.type() == Types.DefinedType) xsf.getPropertyDefinition().addNewProperty(pname, pt);