public interface ModifiableTraversableAmetysObject extends TraversableAmetysObject, ModifiableAmetysObject
TraversableAmetysObject
allowing to create children.Modifier and Type | Method and Description |
---|---|
<A extends AmetysObject> |
createChild(String name,
String type)
Creates a child below current object.
|
getChild, getChildAt, getChildPosition, getChildren, hasChild
needsSave, rename, revertChanges, saveChanges
equals, getId, getName, getParent, getParentPath, getPath, hashCode
<A extends AmetysObject> A createChild(String name, String type) throws AmetysRepositoryException, RepositoryIntegrityViolationException
A
- the actual type of AmetysObject
.name
- the name of the child, position ([n]
) are not supported for
same name sibling, the child will be added at the end of the children list.type
- the type of the object.AmetysRepositoryException
- if an error occurs.RepositoryIntegrityViolationException
- if an object with the same name already
exists and same name siblings is not allowed.