Class EnumType


  • public class EnumType
    extends BaseType
    Represents an OPC UA enumeration type.
    Author:
    Jan-Hendrik Cepok, SSE
    • Field Detail

      • documentation

        private java.lang.String documentation
      • literals

        private java.util.ArrayList<EnumLiteral> literals
    • Constructor Detail

      • EnumType

        public EnumType​(java.lang.String nodeId,
                        java.lang.String browseName,
                        java.lang.String displayname,
                        java.lang.String description,
                        java.lang.String documentation,
                        java.util.ArrayList<EnumLiteral> literals)
        Creates an OPC UA data type instance.
        Parameters:
        nodeId - the node id
        browseName - the browse name
        displayname - the display name
        description - the description
        documentation - the documentation of the type
        literals - the literals of this data type
    • Method Detail

      • getDocumentation

        public java.lang.String getDocumentation()
        Returns the documentation.
        Returns:
        the documentation
      • getLiterals

        public java.util.ArrayList<EnumLiteral> getLiterals()
        Returns the enumeration literals.
        Returns:
        the literals
      • toString

        public java.lang.String toString()
        Description copied from class: BaseType
        Formats the respective OPC UA type in IVML.
        Overrides:
        toString in class BaseType
        Returns:
        the IVML representation of the OPC UA type