diff --git a/JMapper Framework/src/main/java/com/googlecode/jmapper/api/Attribute.java b/JMapper Framework/src/main/java/com/googlecode/jmapper/api/Attribute.java index 3dad2c84..cd446e69 100644 --- a/JMapper Framework/src/main/java/com/googlecode/jmapper/api/Attribute.java +++ b/JMapper Framework/src/main/java/com/googlecode/jmapper/api/Attribute.java @@ -82,6 +82,17 @@ public Attribute value(TargetAttribute targetAttribute){ return this; } + /** + * Value setting. + * + * @param targetAttribute target field. + * @return this instance Attribute + */ + public Attribute value(String targetAttribute){ + xmlAttribute.value = new TargetAttribute(targetAttribute).toXStream(); + return this; + } + /** * Permits to define target attributes. * It is recommended to use this method only if you want to define custom methods, otherwise {@link #targetAttributes(String...) targetAttributes} is recommended.