Class Prechart

    • Field Detail

      • instances

        protected java.util.ArrayList<InstanceLine> instances
    • Constructor Detail

      • Prechart

        public Prechart​(Element prototype)
        Parameters:
        prototype -
    • Method Detail

      • add

        public void add​(InstanceLine instance)
        Parameters:
        instance - an instance line to be added.
      • remove

        public void remove​(InstanceLine instance)
        Parameters:
        instance - an instance line to be removed.
      • 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 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
      • getInstances

        public java.util.ArrayList<InstanceLine> getInstances()
        Returns:
        a list of contained instances.