net.sf.mmapps.modules.lucenesearch
Class DataRelation
java.lang.Object
net.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataRelation
public DataRelation()
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 innode
- 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.