/** * Create an Aries-specific mutable instance of the standard BeanProperty interface. * * @param propertyName the name of the property * @param propertyValue the value of the property as a String * * @return a new BeanProperty instance */ public static <T> MutableBeanProperty create(String propertyName, T propertyValue) { MutableBeanProperty metadata = new BeanPropertyImpl(); metadata.setName(propertyName); if (propertyValue instanceof Metadata) { metadata.setValue((Metadata) propertyValue); } else { metadata.setValue(ValueMetadataUtil.create(propertyValue)); } return metadata; }
processingStack.add("Property named " + prop.getName() + "->"); if(prop instanceof MutableBeanProperty) { ((MutableBeanProperty) prop).setValue(processMetadata(prop.getValue())); } else {
processingStack.add("Property named " + prop.getName() + "->"); if(prop instanceof MutableBeanProperty) { ((MutableBeanProperty) prop).setValue(processMetadata(prop.getValue())); } else {
/** * Create an Aries-specific mutable instance of the standard BeanProperty interface. * * @param propertyName the name of the property * @param propertyType the type of the property value * @param propertyValue the value of the property as a String * * @return a new BeanProperty instance */ public static MutableBeanProperty create(String propertyName, Class propertyType, String propertyValue) { MutableBeanProperty metadata = new BeanPropertyImpl(); metadata.setName(propertyName); metadata.setValue(ValueMetadataUtil.create(propertyType, propertyValue)); return metadata; }