DOFInterfaceBuilder ClassOpenDOF Object Access Library
Builder is used to build DOFInterfaces.
Inheritance Hierarchy

SystemObject
  org.opendof.core.oalDOFInterfaceBuilder

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public sealed class Builder

The DOFInterfaceBuilder type exposes the following members.

Constructors

  NameDescription
Public methodDOFInterfaceBuilder(DOFInterfaceID)
Construct a Builder with an interface ID.
Public methodDOFInterfaceBuilder(DOFInterfaceID, Byte)
Construct a builder from its serialized byte array form.
Public methodDOFInterfaceBuilder(DOFMarshalContext, Object, DOFPacket)
Create a Builder from serial form.
Top
Methods

  NameDescription
Public methodaddEvent
Add an Event to the Interface.
Public methodaddException
Add an Exception to the Interface.
Public methodaddMethod
Add a Method to the Interface.
Public methodaddProperty
Add a Property to the Interface.
Public methodbuild
Construct a new DOFInterface based on the builder's current set of properties, methods, events and exceptions.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

Builder is used to build DOFInterfaces. Since DOFInterface is immutable, it has no methods for adding properties, methods, etc. Use Builder to add all the interface items and then "build()" the

Builder supports a fluent style of programming -- code like the following is encouraged:

DOFInterface iface = new Builder( iid )
.addProperty(...)
.addProperty(...)
.addMethod(...)
.addEvent(...)
.addException(...)
.build();
See Also

Reference