[New] Added StrolchRootElement.getClone():StrolchRootElement

This commit is contained in:
Robert von Burg 2017-10-18 13:10:42 +02:00
parent f2b0666ece
commit b7adf9e638
1 changed files with 23 additions and 15 deletions

View File

@ -37,7 +37,7 @@ public interface StrolchRootElement extends StrolchElement, PolicyContainer, Par
* Set the type of this {@link StrolchRootElement}. Not that this method should only be called for new elements, not
* if this element has already been persisted!
*
* @param type
* @param type the new type
*/
public void setType(String type);
@ -68,6 +68,14 @@ public interface StrolchRootElement extends StrolchElement, PolicyContainer, Par
*/
public void setVersion(Version version) throws IllegalArgumentException;
/**
* Return a clone of this {@link StrolchElement}
*
* @return a clone of this {@link StrolchElement}
*/
@Override
public StrolchRootElement getClone();
/**
* Visitor pattern accept method. Takes a {@link StrolchRootElementVisitor} to visit this element
*