Class ArchetypeAttribute

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int TEXTFIELD_COLUMNS
      The width (columns) for input fields like textfields or JChooseBoxes.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ArchetypeAttribute​(@NotNull java.lang.String archetypeAttributeName, @NotNull java.lang.String attributeName, @NotNull java.lang.String description, int inputLength)
      Creates a new instance.
    • Field Detail

      • TEXTFIELD_COLUMNS

        public static final int TEXTFIELD_COLUMNS
        The width (columns) for input fields like textfields or JChooseBoxes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ArchetypeAttribute

        protected ArchetypeAttribute​(@NotNull
                                     @NotNull java.lang.String archetypeAttributeName,
                                     @NotNull
                                     @NotNull java.lang.String attributeName,
                                     @NotNull
                                     @NotNull java.lang.String description,
                                     int inputLength)
        Creates a new instance.
        Parameters:
        archetypeAttributeName - the archetype attribute name
        attributeName - the user interface attribute name
        description - the attribute's description
        inputLength - the input length in characters for text input fields
    • Method Detail

      • getArchetypeAttributeName

        @NotNull
        public @NotNull java.lang.String getArchetypeAttributeName()
        Returns the archetype attribute name.
        Returns:
        the archetype attribute name
      • getAttributeName

        @NotNull
        public @NotNull java.lang.String getAttributeName()
        Returns the user interface attribute name.
        Returns:
        the user interface attribute name
      • getDescription

        @NotNull
        public @NotNull java.lang.String getDescription()
        Returns the attribute's description.
        Returns:
        the attribute's description
      • getInputLength

        public int getInputLength()
        Returns the input length in characters for text input fields.
        Returns:
        the input length
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • visit

        public abstract void visit​(@NotNull
                                   @NotNull ArchetypeAttributeVisitor visitor)
        Calls the visit() function appropriate for this instance.
        Parameters:
        visitor - the visitor to call