Package org.bardframework.crud.api.tree
Class TreeEntityModelAbstract<M extends BaseModelAbstract<I>,I extends Comparable<? super I>>
- java.lang.Object
-
- org.bardframework.crud.api.base.BaseModelAbstract<I>
-
- org.bardframework.crud.api.tree.TreeEntityModelAbstract<M,I>
-
- All Implemented Interfaces:
TreeEntityModel<M>
public abstract class TreeEntityModelAbstract<M extends BaseModelAbstract<I>,I extends Comparable<? super I>> extends BaseModelAbstract<I> implements TreeEntityModel<M>
Created by vahid (va.zafari@gmail.com) on 11/12/17.
-
-
Constructor Summary
Constructors Constructor Description TreeEntityModelAbstract()TreeEntityModelAbstract(I id)TreeEntityModelAbstract(M parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(M child)List<M>getChildren()MgetParent()voidsetChildren(List<M> children)voidsetParent(M parent)-
Methods inherited from class org.bardframework.crud.api.base.BaseModelAbstract
equals, getId, hashCode, setId, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bardframework.crud.api.tree.TreeEntityModel
isRoot
-
-
-
-
Field Detail
-
parent
protected M extends BaseModelAbstract<I> parent
-
children
protected List<M extends BaseModelAbstract<I>> children
-
-
Method Detail
-
addChild
public void addChild(M child)
- Specified by:
addChildin interfaceTreeEntityModel<M extends BaseModelAbstract<I>>
-
getParent
public M getParent()
- Specified by:
getParentin interfaceTreeEntityModel<M extends BaseModelAbstract<I>>
-
setParent
public void setParent(M parent)
- Specified by:
setParentin interfaceTreeEntityModel<M extends BaseModelAbstract<I>>
-
getChildren
public List<M> getChildren()
- Specified by:
getChildrenin interfaceTreeEntityModel<M extends BaseModelAbstract<I>>
-
setChildren
public void setChildren(List<M> children)
- Specified by:
setChildrenin interfaceTreeEntityModel<M extends BaseModelAbstract<I>>
-
-