gov.sns.xal.model.gen
Class ElementGenerator

java.lang.Object
  |
  +--gov.sns.xal.model.gen.ElementGenerator

public class ElementGenerator
extends java.lang.Object


Constructor Summary
ElementGenerator()
           
 
Method Summary
static IElement generateElementFor(java.lang.Object objectSource)
          Generates a lattice element for the supplied node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementGenerator

public ElementGenerator()
Method Detail

generateElementFor

public static IElement generateElementFor(java.lang.Object objectSource)
                                   throws GenerationException
Generates a lattice element for the supplied node.

Returns:
a lattice element for the supplied node
Throws:
GenerationException - if the node type is unknown or other error generating the element