com.gentics.api.lib.datasource
Class ChannelTreeNode

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

public class ChannelTreeNode
extends java.lang.Object
implements java.lang.Comparable<ChannelTreeNode>, java.io.Serializable

A node in the channel tree

See Also:
Serialized Form

Field Summary
protected  DatasourceChannel channel
          The channel of this tree node
protected  java.util.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
 java.util.List<ChannelTreeNode> getChildren()
          Get the list of children
 java.lang.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 java.util.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 java.util.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 java.lang.Comparable<ChannelTreeNode>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.