Skip to content

Commit

Permalink
configuration via API
Browse files Browse the repository at this point in the history
  • Loading branch information
avurro committed Mar 21, 2016
1 parent 1571b89 commit c595948
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c595948

Please sign in to comment.