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 java.lang.Object implements org.eclipse.milo.opcua.stack.core.serialization.UaStructureImplements a user-defined type.- Author:
- Holger Eichelberger, SSE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVendorStruct.CodecSerialization Codec.
-
Field Summary
Fields Modifier and Type Field Description static org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdBINARY_ENCODING_IDprivate booleanopcUastatic org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdTYPE_IDstatic java.lang.StringTYPE_NAMEstatic java.lang.StringTYPE_QNAMEprivate java.lang.Stringvendorprivate org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UIntegeryear
-
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.privateVendorStruct(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 booleanequals(java.lang.Object obj)org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdgetBinaryEncodingId()org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdgetTypeId()java.lang.StringgetVendor()Returns the vendor name.org.eclipse.milo.opcua.stack.core.types.builtin.ExpandedNodeIdgetXmlEncodingId()intgetYear()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.java.lang.StringtoString()
-
-
-
Field Detail
-
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
-
TYPE_QNAME
public static final java.lang.String TYPE_QNAME
- See Also:
- Constant Field Values
-
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 nameyear- the production yearopcUa- 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 nameyear- the production yearopcUa- 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:
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.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.ExceptionRegisters the type in the given OPC UA server.- Parameters:
server- the server instancenamespaceIndex- the namespace indexdictionaryManager- the dictionary manager- Throws:
java.lang.Exception- in case of a problem (called methods also just throw an Exception)
-
-