Enum PortType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PortType>

    public enum PortType
    extends java.lang.Enum<PortType>
    implements java.io.Serializable
    PortType defines the different port types used for open metadata. It is used in a port implementation definition.
    • INPUT_PORT - Input Port.
    • OUTPUT_PORT - Output Port.
    • INOUT_PORT - Input Output Port.
    • OUTIN_PORT - Output Input Port.
    • OTHER - None of the above.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Return the default description of the instance provenance type.
      java.lang.String getName()
      Return the default name of the instance provenance type.
      int getOrdinal()
      Return the numeric representation of the instance provenance type.
      java.lang.String toString()  
      static PortType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PortType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • INPUT_PORT

        public static final PortType INPUT_PORT
      • OUTPUT_PORT

        public static final PortType OUTPUT_PORT
      • INOUT_PORT

        public static final PortType INOUT_PORT
      • OUTIN_PORT

        public static final PortType OUTIN_PORT
      • OTHER

        public static final PortType OTHER
    • Method Detail

      • values

        public static PortType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PortType c : PortType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PortType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<PortType>
      • getOrdinal

        public int getOrdinal()
        Return the numeric representation of the instance provenance type.
        Returns:
        int ordinal
      • getName

        public java.lang.String getName()
        Return the default name of the instance provenance type.
        Returns:
        String name
      • getDescription

        public java.lang.String getDescription()
        Return the default description of the instance provenance type.
        Returns:
        String description