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 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdprivate final booleanstatic final org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdstatic final Stringstatic final Stringprivate final Stringprivate final org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UInteger -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a struct instance.VendorStruct(String vendor, int year, boolean opcUa) Creates a struct instance with values.privateVendorStruct(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 TypeMethodDescriptionbooleanorg.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdorg.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdReturns the vendor name.org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdintgetYear()Returns the production year.inthashCode()booleanisOpcUa()Returns whether the machine is OPC UA compliant.static voidregisterType(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.toString()
-
Field Details
-
TYPE_NAME
- See Also:
-
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
-
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
Creates a struct instance with values.- Parameters:
vendor- the vendor nameyear- the production yearopcUa- 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 nameyear- the production yearopcUa- is OPC UA compliant
-
-
Method Details
-
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:
getTypeIdin interfaceorg.eclipse.milo.opcua.stack.core.serialization.UaStructure
-
getBinaryEncodingId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getBinaryEncodingId()- Specified by:
getBinaryEncodingIdin interfaceorg.eclipse.milo.opcua.stack.core.serialization.UaStructure
-
getXmlEncodingId
public org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeId getXmlEncodingId()- Specified by:
getXmlEncodingIdin interfaceorg.eclipse.milo.opcua.stack.core.serialization.UaStructure
-
equals
-
hashCode
public int hashCode() -
toString
-
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 instancenamespaceIndex- the namespace indexdictionaryManager- the dictionary manager- Throws:
Exception- in case of a problem (called methods also just throw an Exception)
-