Class DataLiteral


  • public class DataLiteral
    extends Literal
    Represents an OPC UA data literal.
    Author:
    Jan-Hendrik Cepok, SSE
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDataType()
      Returns the name of the data type.
      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

      • dataType

        private java.lang.String dataType
    • Constructor Detail

      • DataLiteral

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

      • getDataType

        public java.lang.String getDataType()
        Returns the name of the data type.
        Returns:
        the data type
      • toString

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