com.bowstreet.generation
Interface GenContainer


public interface GenContainer

GenContainer is the primary access point to the generic generation engine. When a generation is complete, the GenContainer is the thing that the generated contents are created in.


Method Summary
 void addException(java.lang.Throwable thr)
          Add an exception for the Designer to display
 java.util.Collection findElements(java.util.List nodeNames)
           
 java.util.Collection findElements(java.lang.String pathName)
           
 java.util.Collection findElementsReferencing(java.lang.Object domainObject)
          Find all the GenElements which have this domain object as their primary reference.
 GenElement findSingleElement(java.lang.String pathName)
          Finds a single element according to the search string
 java.util.Collection getExceptions()
           
 GenerationSource getGenerationSource()
          Get the GenerationSource which was the source of the contents of this container
 GenElement getRoot()
           
 

Method Detail

addException

void addException(java.lang.Throwable thr)
Add an exception for the Designer to display

Parameters:
thr - The exception

findElements

java.util.Collection findElements(java.util.List nodeNames)

findElements

java.util.Collection findElements(java.lang.String pathName)

findElementsReferencing

java.util.Collection findElementsReferencing(java.lang.Object domainObject)
Find all the GenElements which have this domain object as their primary reference. This will search the tree, if necessary, but if the domainObject implements DomainObject, this will be a lot faster.

Parameters:
domainObject -

findSingleElement

GenElement findSingleElement(java.lang.String pathName)
Finds a single element according to the search string

Parameters:
pathName -

getExceptions

java.util.Collection getExceptions()

getGenerationSource

GenerationSource getGenerationSource()
Get the GenerationSource which was the source of the contents of this container


getRoot

GenElement getRoot()
Returns:
The root element


Copyright © 2009 IBM. All Rights Reserved.