Commit 3cb8d51a authored by guus's avatar guus

Adds utility method that allows you to create copies of a DataForm object.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10834 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2fb52757
...@@ -238,6 +238,15 @@ public class FormField { ...@@ -238,6 +238,15 @@ public class FormField {
return element.elementTextTrim("desc"); return element.elementTextTrim("desc");
} }
/**
* Creates and returns a new object that is an exact copy of this FormField object.
*
* @return an exact copy of this instance.
*/
public FormField createCopy() {
return new FormField(this.element.createCopy());
}
/** /**
* Represents the available option of a given FormField. * Represents the available option of a given FormField.
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment