Class ElementFactory


  • public final class ElementFactory
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Element createElement​(MadxElementType madxElementType, java.lang.String elementName)
      factory method for an element of the according type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createElement

        public static Element createElement​(MadxElementType madxElementType,
                                            java.lang.String elementName)
        factory method for an element of the according type.
        Parameters:
        madxElementType - the type of the element as represented in madx itself
        elementName - the name of the new element
        Returns:
        an element of the correct Type.