Class AbstractTemplate

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    LscTemplate, Template

    public abstract class AbstractTemplate
    extends Node
    AbstractTemplate has two subclasses: Template (for TA) and LscTemplate (for LSC)
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractTemplate

        public AbstractTemplate​(Element prototype)
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Description copied from class: Node
        Returns a deep clone of the node. The sibling references of the clone are set to null.
        Overrides:
        clone in class Node
        Returns:
        The cloned object
        Throws:
        java.lang.CloneNotSupportedException - an object cannot be cloned.
      • accept

        public void accept​(Visitor visitor)
                    throws java.lang.Exception
        Description copied from class: Element
        Accept a visitor. This method is specialized in every subclass. Part of the visitor pattern.
        Overrides:
        accept in class Node
        Parameters:
        visitor - - The visitor
        Throws:
        java.lang.Exception - the visitor threw an exception.
      • getPrototypeFromParent

        public abstract Element getPrototypeFromParent​(Element parent)
        Description copied from class: Element
        Return the proper prototype for this element stored in the parent. This is used by importInto().
        Overrides:
        getPrototypeFromParent in class Element
        Parameters:
        parent - - The parent element
        Returns:
        - The property