Class MethodType


  • public class MethodType
    extends BaseType
    Represents an OPC UA method type (declaration).
    Author:
    Jan-Hendrik Cepok, SSE
    • Field Detail

      • fields

        private java.util.ArrayList<FieldType> fields
    • Constructor Detail

      • MethodType

        public MethodType​(java.lang.String nodeId,
                          java.lang.String browseName,
                          java.lang.String displayName,
                          java.lang.String description,
                          boolean optional,
                          java.util.ArrayList<FieldType> fields)
        Creates an OPC UA method type representation/declaration.
        Parameters:
        nodeId - the node id
        browseName - the browse name
        displayName - the display name
        description - the description
        optional - whether the type is optional
        fields - the fields the object is constituted from
    • Method Detail

      • getFields

        public java.util.ArrayList<FieldType> getFields()
        Returns the fields making up the type.
        Returns:
        the fields
      • setFields

        public void setFields​(java.util.ArrayList<FieldType> fields)
        Changes the fields making up the type.
        Parameters:
        fields - the new fields
      • toString

        public java.lang.String toString()
        Description copied from class: BaseType
        Formats the respective OPC UA type in IVML.
        Overrides:
        toString in class BaseType
        Returns:
        the IVML representation of the OPC UA type