com.google.gdata.wireformats.input
Class InputPropertiesBuilder

java.lang.Object
  extended by com.google.gdata.wireformats.StreamPropertiesBuilder<InputPropertiesBuilder>
      extended by com.google.gdata.wireformats.input.InputPropertiesBuilder

public class InputPropertiesBuilder
extends StreamPropertiesBuilder<InputPropertiesBuilder>

The InputPropertiesBuilder class is a builder class that aids in the construction of new InputProperties instances.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.wireformats.StreamPropertiesBuilder
StreamPropertiesBuilder.StreamPropertiesImpl
 
Field Summary
 
Fields inherited from class com.google.gdata.wireformats.StreamPropertiesBuilder
altRegistry, contentType, extensionProfile, queryMap, rootMetadata
 
Constructor Summary
InputPropertiesBuilder()
          Constructs a new InputPropertiesBuilder with no properties set.
InputPropertiesBuilder(InputProperties source)
          Constructs a new InputPropertiesBuilder with properties set from an existing InputProperties instance.
 
Method Summary
 InputProperties build()
          Returns a new InputProperties instance initialized with the property values set on the builder.
 InputPropertiesBuilder setExpectType(java.lang.Class<?> expectType)
          Sets the expected type property that should be used for instances created by the builder.
 
Methods inherited from class com.google.gdata.wireformats.StreamPropertiesBuilder
setAltRegistry, setContentType, setElementMetadata, setExtensionProfile, setQueryParameter, setQueryParameters, thisInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputPropertiesBuilder

public InputPropertiesBuilder()
Constructs a new InputPropertiesBuilder with no properties set.


InputPropertiesBuilder

public InputPropertiesBuilder(InputProperties source)
Constructs a new InputPropertiesBuilder with properties set from an existing InputProperties instance.

Parameters:
source - input properties instance to copy from
Method Detail

setExpectType

public InputPropertiesBuilder setExpectType(java.lang.Class<?> expectType)
Sets the expected type property that should be used for instances created by the builder.

Parameters:
expectType - expectType to set in built instances.
Returns:
this builder (to enable initialization chaining).

build

public InputProperties build()
Returns a new InputProperties instance initialized with the property values set on the builder.