Class VendorStruct

  • All Implemented Interfaces:
    org.eclipse.milo.opcua.stack.core.serialization.UaSerializable, org.eclipse.milo.opcua.stack.core.serialization.UaStructure

    public class VendorStruct
    extends java.lang.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 java.lang.String TYPE_NAME  
      static java.lang.String TYPE_QNAME  
      private java.lang.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​(java.lang.String vendor, int year, boolean opcUa)
      Creates a struct instance with values.
      private VendorStruct​(java.lang.String vendor, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year, boolean opcUa)
      Creates a struct instance with values.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()  
      org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()  
      java.lang.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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • 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 java.lang.String vendor
      • year

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

        private final boolean opcUa
    • Constructor Detail

      • VendorStruct

        public VendorStruct()
        Creates a struct instance.
      • VendorStruct

        public VendorStruct​(java.lang.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​(java.lang.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 Detail

      • getVendor

        public java.lang.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​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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 java.lang.Exception
        Registers the type in the given OPC UA server.
        Parameters:
        server - the server instance
        namespaceIndex - the namespace index
        dictionaryManager - the dictionary manager
        Throws:
        java.lang.Exception - in case of a problem (called methods also just throw an Exception)