com.gentics.api.lib.datasource
Class ChannelTreeNode

java.lang.Object
  extended by com.gentics.api.lib.datasource.ChannelTreeNode
All Implemented Interfaces:
Serializable, Comparable<ChannelTreeNode>

public class ChannelTreeNode
extends Object
implements Comparable<ChannelTreeNode>, Serializable

A node in the channel tree

See Also:
Serialized Form

Field Summary
protected  DatasourceChannel channel
          The channel of this tree node
protected  List<ChannelTreeNode> children
          List of children
 
Constructor Summary
ChannelTreeNode(DatasourceChannel channel)
          Create an instance for the given channel
 
Method Summary
 int compareTo(ChannelTreeNode that)
           
 boolean equals(ChannelTreeNode that)
           
 DatasourceChannel getChannel()
          Get the channel
 List<ChannelTreeNode> getChildren()
          Get the list of children
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

channel

protected DatasourceChannel channel
The channel of this tree node


children

protected List<ChannelTreeNode> children
List of children

Constructor Detail

ChannelTreeNode

public ChannelTreeNode(DatasourceChannel channel)
Create an instance for the given channel

Parameters:
channel - channel
Method Detail

getChannel

public DatasourceChannel getChannel()
Get the channel

Returns:
channel (or null if this is the root node)

getChildren

public List<ChannelTreeNode> getChildren()
Get the list of children

Returns:
list of children

equals

public boolean equals(ChannelTreeNode that)

compareTo

public int compareTo(ChannelTreeNode that)
Specified by:
compareTo in interface Comparable<ChannelTreeNode>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.