Package ru.bitel.common.model
Class AbstractTreeNode<N extends AbstractTreeNode<N>>
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
ru.bitel.oss.kernel.entity.common.bean.Entity
ru.bitel.common.model.AbstractTreeNode<N>
- All Implemented Interfaces:
java.io.Serializable
,GuiTitlable
,Idable
,ListItem
,Node<N>
,TreeNode<N>
- Direct Known Subclasses:
Domain
,InetOption
,InetServ
,IpCategory
,PhoneCategory
,TvAccount
,VlanCategory
,VoiceBaseCodeBean
public abstract class AbstractTreeNode<N extends AbstractTreeNode<N>> extends Entity implements Node<N>
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<N>
children
protected int
parentId
Fields inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
entitySpecId
-
Constructor Summary
Constructors Constructor Description AbstractTreeNode()
-
Method Summary
Modifier and Type Method Description java.util.List<N>
getChildren()
int
getParentId()
void
setChildren(java.util.List<N> children)
void
setParentId(int parentId)
java.util.List<N>
toList()
Methods inherited from class ru.bitel.oss.kernel.entity.common.bean.Entity
getEntityId, setEntityId
Methods inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
getEntityAttributes, getEntitySpecId, setEntityAttributes, setEntitySpecId
Methods inherited from class ru.bitel.common.model.IdTitle
getGuiTitle, getTitle, setTitle, toString
Methods inherited from class ru.bitel.common.model.Id
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
parentId
protected int parentId -
children
-
-
Constructor Details
-
AbstractTreeNode
public AbstractTreeNode()
-
-
Method Details
-
getChildren
- Specified by:
getChildren
in interfaceTreeNode<N extends AbstractTreeNode<N>>
-
setChildren
- Specified by:
setChildren
in interfaceNode<N extends AbstractTreeNode<N>>
-
getParentId
public int getParentId()- Specified by:
getParentId
in interfaceNode<N extends AbstractTreeNode<N>>
-
setParentId
public void setParentId(int parentId) -
toList
-