public class VendorStruct extends Object implements org.eclipse.milo.opcua.stack.core.serialization.UaStructure
| Modifier and Type | Class and Description |
|---|---|
static class |
VendorStruct.Codec
Serialization Codec.
|
| Modifier and Type | Field and 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 |
| Modifier | Constructor and 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.
|
| Modifier and Type | Method and 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() |
public static final String TYPE_NAME
public static final String TYPE_QNAME
public static final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId TYPE_ID
public static final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId BINARY_ENCODING_ID
private final String vendor
private final org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year
private final boolean opcUa
public VendorStruct()
public VendorStruct(String vendor, int year, boolean opcUa)
vendor - the vendor nameyear - the production yearopcUa - is OPC UA compliantprivate VendorStruct(String vendor, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger year, boolean opcUa)
vendor - the vendor nameyear - the production yearopcUa - is OPC UA compliantpublic String getVendor()
public int getYear()
public boolean isOpcUa()
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getTypeId()
getTypeId in interface org.eclipse.milo.opcua.stack.core.serialization.UaStructurepublic org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()
getBinaryEncodingId in interface org.eclipse.milo.opcua.stack.core.serialization.UaStructurepublic org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getXmlEncodingId()
getXmlEncodingId in interface org.eclipse.milo.opcua.stack.core.serialization.UaStructurepublic 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
server - the server instancenamespaceIndex - the namespace indexdictionaryManager - the dictionary managerException - in case of a problem (called methods also just throw an Exception)Copyright © 2022. All rights reserved.