Class Literal

  • Direct Known Subclasses:
    DataLiteral, EnumLiteral

    public abstract class Literal
    extends java.lang.Object
    Represents an OPC UA literal.
    Author:
    Jan-Hendrik Cepok, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String description  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      Literal​(java.lang.String name, java.lang.String description)
      Creates a literal instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns the name of the literal description.
      java.lang.String getName()
      Returns the name of the literal.
      java.lang.String toString()
      Formats the OPC UA literal in IVML.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
      • description

        private java.lang.String description
    • Constructor Detail

      • Literal

        public Literal​(java.lang.String name,
                       java.lang.String description)
        Creates a literal instance.
        Parameters:
        name - the name of the literal
        description - the description
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the literal.
        Returns:
        the literal
      • getDescription

        public java.lang.String getDescription()
        Returns the name of the literal description.
        Returns:
        the description
      • toString

        public java.lang.String toString()
        Formats the OPC UA literal in IVML.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the IVML representation of the OPC UA literal