org.databene.commons.tree
Class DefaultChildModel<I,V extends Child<I>>

java.lang.Object
  extended by org.databene.commons.tree.DefaultChildModel<I,V>
All Implemented Interfaces:
ChildModel<I,V>

public class DefaultChildModel<I,V extends Child<I>>
extends java.lang.Object
implements ChildModel<I,V>

The default implementation of the ChildModel interface which expects its elements to implement the Child interface.

Created: 31.07.2007 06:55:23

Author:
Volker Bergmann

Constructor Summary
DefaultChildModel()
           
 
Method Summary
 I getId(V element)
           
 I getParentId(V child)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChildModel

public DefaultChildModel()
Method Detail

getId

public I getId(V element)
Specified by:
getId in interface ChildModel<I,V extends Child<I>>

getParentId

public I getParentId(V child)
Specified by:
getParentId in interface ChildModel<I,V extends Child<I>>


Copyright © 2010. All Rights Reserved.