Class VendorStruct

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  VendorStruct.Codec
    Serialization Codec.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId BINARY_ENCODING_ID  
    private boolean opcUa  
    static org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId TYPE_ID  
    static String TYPE_NAME  
    static String TYPE_QNAME  
    private String vendor  
    private org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
      VendorStruct()
    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 equals​(Object obj)  
    org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()  
    org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()  
    String getVendor()
    Returns the vendor name.
    org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getXmlEncodingId()  
    int getYear()
    Returns the production year.
    int hashCode()  
    boolean isOpcUa()
    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.
    String toString()  

    Methods inherited from class java.lang.Object

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

  • 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)