fr.paris5.shaman.insight.operation
Class TopicImpl

java.lang.Object
  |
  +--fr.paris5.shaman.insight.operation.TopicImpl
All Implemented Interfaces:
java.io.Serializable, Topic

class TopicImpl
extends java.lang.Object
implements Topic

Implementation of a Topic.

Version:
$Id: TopicImpl.java,v 1.3 2002/07/25 13:18:08 caillette Exp $
Author:
Laurent Caillette
See Also:
Serialized Form

Field Summary
private  int childCount
           
private  java.lang.String fqName
           
private  long id
           
private  java.lang.String name
           
private  boolean root
           
(package private) static long serialVersionUID
           
 
Fields inherited from interface fr.paris5.shaman.insight.data.Topic
PATH_SEPARATOR
 
Constructor Summary
TopicImpl(long id, java.lang.String fqName)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Performs a check on both Full Qualified Name and id.
 int getChildCount()
           
 java.lang.String getFQName()
           
 long getId()
           
 java.lang.String getName()
           
 int hashCode()
           
 boolean isRoot()
           
(package private)  void setChildCount(int childCount)
           
(package private)  void setRoot(boolean root)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID

id

private final long id

fqName

private final java.lang.String fqName

name

private final java.lang.String name

root

private boolean root

childCount

private int childCount
Constructor Detail

TopicImpl

public TopicImpl(long id,
                 java.lang.String fqName)
Method Detail

toString

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

equals

public boolean equals(java.lang.Object obj)
Performs a check on both Full Qualified Name and id.
Overrides:
equals in class java.lang.Object
Parameters:
obj -  
Returns:
 

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getId

public long getId()
Specified by:
getId in interface Topic

getName

public java.lang.String getName()
Specified by:
getName in interface Topic

getFQName

public java.lang.String getFQName()
Specified by:
getFQName in interface Topic

setRoot

void setRoot(boolean root)

isRoot

public boolean isRoot()
Specified by:
isRoot in interface Topic

setChildCount

void setChildCount(int childCount)

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface Topic


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.