Package jline.lang

Class Element

  • All Implemented Interfaces:
    java.io.Serializable , jline.lang.Copyable

    
    public class Element
     implements Copyable
                        

    Superclass for model elements

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String name
    • Constructor Summary

      Constructors 
      Constructor Description
      Element(String name) Creates a new element with the specified name.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getName() Gets the name of this element.
      void setName(String name) Sets the name of this element.
      • Methods inherited from class jline.lang.Copyable

        copy
      • Methods inherited from class java.lang.Object

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

      • Element

        Element(String name)
        Creates a new element with the specified name.
        Parameters:
        name - the name to assign to this element
    • Method Detail

      • getName

         String getName()

        Gets the name of this element.

        Returns:

        the element's name

      • setName

         void setName(String name)

        Sets the name of this element.

        Parameters:
        name - the new name for this element