net.sf.mmapps.modules.lucenesearch
Class DataRelation

java.lang.Object
  extended bynet.sf.mmapps.modules.lucenesearch.DataRelation

public class DataRelation
extends java.lang.Object

The Relation object, holds objects related to a table, these objects are tables also.

Version:
$Revision: 1.1 $
Author:
Wouter Heijke

Constructor Summary
DataRelation()
           
 
Method Summary
 void addField(DataField field)
          Adds a field to this relation
 void addRelated(DataRelation relation)
           
protected  void collectAll(org.apache.lucene.document.Document doc, org.mmbase.bridge.Node node)
          Collects all related nodes and their fields
 java.util.Collection getAllFields()
           
 java.util.List getFields()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 void setName(java.lang.String string)
           
 void setType(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataRelation

public DataRelation()
Method Detail

collectAll

protected void collectAll(org.apache.lucene.document.Document doc,
                          org.mmbase.bridge.Node node)
Collects all related nodes and their fields

Parameters:
doc - Lucene Document to put the collected fields in
node - Node of the parent, the starting node to find the related nodes from

addField

public void addField(DataField field)
Adds a field to this relation

Parameters:
field - DataField object to add

getFields

public java.util.List getFields()
Returns:
list of fields

getAllFields

public java.util.Collection getAllFields()
Returns:
collection of fields and fields of related elements

addRelated

public void addRelated(DataRelation relation)
Parameters:
relation -

getName

public java.lang.String getName()
Returns:
The name of this Relation

getType

public java.lang.String getType()
Returns:
The type of this Relation

setName

public void setName(java.lang.String string)
Parameters:
string -

setType

public void setType(java.lang.String string)
Parameters:
string -


Copyright © 2003-2005 mmapps. All Rights Reserved.