java.lang.Object
test.de.iip_ecosphere.platform.connectors.opcuav1.simpleMachineNamespace.VendorStruct
All Implemented Interfaces:
org.eclipse.milo.opcua.stack.core.serialization.UaSerializable, org.eclipse.milo.opcua.stack.core.serialization.UaStructure

public class VendorStruct extends Object implements org.eclipse.milo.opcua.stack.core.serialization.UaStructure
Implements a user-defined type.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Serialization Codec.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId
     
    private final boolean
     
    static final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId
     
    static final String
     
    static final String
     
    private final String
     
    private final org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Creates a struct instance.
     
    VendorStruct(String vendor, int year, boolean opcUa)
    Creates a struct instance with values.
    private
    VendorStruct(String vendor, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year, boolean opcUa)
    Creates a struct instance with values.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId
     
    org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId
     
    Returns the vendor name.
    org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId
     
    int
    Returns the production year.
    int
     
    boolean
    Returns whether the machine is OPC UA compliant.
    static void
    registerType(org.eclipse.milo.opcua.sdk.server.OpcUaServer server, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort namespaceIndex, DataTypeDictionaryManager dictionaryManager)
    Registers the type in the given OPC UA server.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • TYPE_NAME

      public static final String TYPE_NAME
      See Also:
    • TYPE_QNAME

      public static final String TYPE_QNAME
      See Also:
    • TYPE_ID

      public static final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId TYPE_ID
    • BINARY_ENCODING_ID

      public static final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId BINARY_ENCODING_ID
    • vendor

      private final String vendor
    • year

      private final org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year
    • opcUa

      private final boolean opcUa
  • Constructor Details

    • VendorStruct

      public VendorStruct()
      Creates a struct instance.
    • VendorStruct

      public VendorStruct(String vendor, int year, boolean opcUa)
      Creates a struct instance with values.
      Parameters:
      vendor - the vendor name
      year - the production year
      opcUa - is OPC UA compliant
    • VendorStruct

      private VendorStruct(String vendor, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year, boolean opcUa)
      Creates a struct instance with values.
      Parameters:
      vendor - the vendor name
      year - the production year
      opcUa - is OPC UA compliant
  • Method Details

    • getVendor

      public String getVendor()
      Returns the vendor name.
      Returns:
      the vendor name
    • getYear

      public int getYear()
      Returns the production year.
      Returns:
      the production year
    • isOpcUa

      public boolean isOpcUa()
      Returns whether the machine is OPC UA compliant.
      Returns:
      whether the machine is OPC UA compliant
    • getTypeId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()
      Specified by:
      getTypeId in interface org.eclipse.milo.opcua.stack.core.serialization.UaStructure
    • getBinaryEncodingId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()
      Specified by:
      getBinaryEncodingId in interface org.eclipse.milo.opcua.stack.core.serialization.UaStructure
    • getXmlEncodingId

      public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getXmlEncodingId()
      Specified by:
      getXmlEncodingId in interface org.eclipse.milo.opcua.stack.core.serialization.UaStructure
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • registerType

      public static void registerType(org.eclipse.milo.opcua.sdk.server.OpcUaServer server, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort namespaceIndex, DataTypeDictionaryManager dictionaryManager) throws Exception
      Registers the type in the given OPC UA server.
      Parameters:
      server - the server instance
      namespaceIndex - the namespace index
      dictionaryManager - the dictionary manager
      Throws:
      Exception - in case of a problem (called methods also just throw an Exception)