[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 * 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! * if this element has already been persisted!
* *
* @param type * @param type the new type
*/ */
public void setType(String type); public void setType(String type);
@ -61,18 +61,26 @@ public interface StrolchRootElement extends StrolchElement, PolicyContainer, Par
* </p> * </p>
* *
* @param version * @param version
* the version to set * the version to set
* *
* @throws IllegalArgumentException * @throws IllegalArgumentException
* if the given version's locator is not equal to the current element's locator * if the given version's locator is not equal to the current element's locator
*/ */
public void setVersion(Version version) throws IllegalArgumentException; 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 * Visitor pattern accept method. Takes a {@link StrolchRootElementVisitor} to visit this element
* *
* @param visitor * @param visitor
* the visitor * the visitor
* *
* @return the result of the visitation * @return the result of the visitation
*/ */