org.hydrateframework
Class MultiAssemblerLink

java.lang.Object
  extended by org.hydrateframework.MultiAssemblerLink
All Implemented Interfaces:
AssemblerLink

public class MultiAssemblerLink
extends java.lang.Object
implements AssemblerLink

An implementation of AssemblerLink that handles the case where more than one object is linking to another object. In the simple case where one assembler links to just one other, both AssemblerLink objects will be Assembler objects. However, if one or both links have several alternative assemblers that they can link to in the same query, an instance of this class is created to handle this additional complexity.

Version:
@(#)$Revision: 1.1 $
Author:
David Chamberlin

Constructor Summary
MultiAssemblerLink(Assembler firstLink)
           
 
Method Summary
 void addLink(Assembler link)
          Add a assembler to the list of links.
 java.lang.Object getBuiltObject()
          Get the object that this assembler, or assemblers have just built or null if none has been built yet.
 java.lang.Object[] getBuiltObjects()
          If mroe than one assembler is active in a particular query, more than one object may be returned.
 java.util.Collection getLinks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiAssemblerLink

public MultiAssemblerLink(Assembler firstLink)
Method Detail

getBuiltObject

public java.lang.Object getBuiltObject()
Description copied from interface: AssemblerLink
Get the object that this assembler, or assemblers have just built or null if none has been built yet.

Specified by:
getBuiltObject in interface AssemblerLink

getBuiltObjects

public java.lang.Object[] getBuiltObjects()
Description copied from interface: AssemblerLink
If mroe than one assembler is active in a particular query, more than one object may be returned.

Specified by:
getBuiltObjects in interface AssemblerLink

getLinks

public java.util.Collection getLinks()
Returns:
the list of assemblers representing the links from the owning assembler

addLink

public void addLink(Assembler link)
Add a assembler to the list of links.



Copyright © 2000 The Hydrate Project. All Rights Reserved.