org.robokind.avrogen.sensor
Class DeviceAnalogRecord.Builder

java.lang.Object
  extended by org.apache.avro.data.RecordBuilderBase<T>
      extended by org.apache.avro.specific.SpecificRecordBuilderBase<DeviceAnalogRecord>
          extended by org.robokind.avrogen.sensor.DeviceAnalogRecord.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<DeviceAnalogRecord>, org.jflux.api.core.Source<DeviceAnalogRecord>
Enclosing class:
DeviceAnalogRecord

public static class DeviceAnalogRecord.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<DeviceAnalogRecord>
implements org.apache.avro.data.RecordBuilder<DeviceAnalogRecord>, org.jflux.api.core.Source<DeviceAnalogRecord>

RecordBuilder for DeviceAnalogRecord instances.


Method Summary
 DeviceAnalogRecord build()
           
 DeviceAnalogRecord.Builder clearAnalogValue()
          Clears the value of the 'analogValue' field
 DeviceAnalogRecord.Builder clearChannelId()
          Clears the value of the 'channelId' field
 DeviceAnalogRecord.Builder clearHeader()
          Clears the value of the 'header' field
 Double getAnalogValue()
          Gets the value of the 'analogValue' field
 Integer getChannelId()
          Gets the value of the 'channelId' field
 HeaderRecord getHeader()
          Gets the value of the 'header' field
 DeviceAnalogRecord getValue()
           
 boolean hasAnalogValue()
          Checks whether the 'analogValue' field has been set
 boolean hasChannelId()
          Checks whether the 'channelId' field has been set
 boolean hasHeader()
          Checks whether the 'header' field has been set
 DeviceAnalogRecord.Builder setAnalogValue(double value)
          Sets the value of the 'analogValue' field
 DeviceAnalogRecord.Builder setChannelId(int value)
          Sets the value of the 'channelId' field
 DeviceAnalogRecord.Builder setHeader(HeaderRecord value)
          Sets the value of the 'header' field
 
Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeader

public HeaderRecord getHeader()
Gets the value of the 'header' field


setHeader

public DeviceAnalogRecord.Builder setHeader(HeaderRecord value)
Sets the value of the 'header' field


hasHeader

public boolean hasHeader()
Checks whether the 'header' field has been set


clearHeader

public DeviceAnalogRecord.Builder clearHeader()
Clears the value of the 'header' field


getChannelId

public Integer getChannelId()
Gets the value of the 'channelId' field


setChannelId

public DeviceAnalogRecord.Builder setChannelId(int value)
Sets the value of the 'channelId' field


hasChannelId

public boolean hasChannelId()
Checks whether the 'channelId' field has been set


clearChannelId

public DeviceAnalogRecord.Builder clearChannelId()
Clears the value of the 'channelId' field


getAnalogValue

public Double getAnalogValue()
Gets the value of the 'analogValue' field


setAnalogValue

public DeviceAnalogRecord.Builder setAnalogValue(double value)
Sets the value of the 'analogValue' field


hasAnalogValue

public boolean hasAnalogValue()
Checks whether the 'analogValue' field has been set


clearAnalogValue

public DeviceAnalogRecord.Builder clearAnalogValue()
Clears the value of the 'analogValue' field


build

public DeviceAnalogRecord build()
Specified by:
build in interface org.apache.avro.data.RecordBuilder<DeviceAnalogRecord>

getValue

public DeviceAnalogRecord getValue()
Specified by:
getValue in interface org.jflux.api.core.Source<DeviceAnalogRecord>


Copyright © 2011-2013. All Rights Reserved.