Package org.somda.sdc.dpws
Class ThisModelBuilder
java.lang.Object
org.somda.sdc.dpws.ThisModelBuilder
Convenient class to build DPWS' ThisModel.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ThisModelBuilder(List<org.somda.sdc.dpws.model.LocalizedStringType> manufacturer, List<org.somda.sdc.dpws.model.LocalizedStringType> modelName) Constructor with predefined manufacturer and model name. -
Method Summary
Modifier and TypeMethodDescriptionorg.somda.sdc.dpws.model.ThisModelTypeget()Gets the actual model type.setManufacturer(List<org.somda.sdc.dpws.model.LocalizedStringType> manufacturer) Sets the manufacturer.setManufacturerUrl(String manufacturerUrl) Sets the manufacturer url.setModelName(List<org.somda.sdc.dpws.model.LocalizedStringType> modelName) Sets the model name.setModelNumber(String modelNumber) Sets the model number.setModelUrl(String modelUrl) Sets the model url.setPresentationUrl(String presentationUrl) Sets the presentation url.
-
Constructor Details
-
ThisModelBuilder
public ThisModelBuilder()Default constructor. -
ThisModelBuilder
public ThisModelBuilder(List<org.somda.sdc.dpws.model.LocalizedStringType> manufacturer, List<org.somda.sdc.dpws.model.LocalizedStringType> modelName) Constructor with predefined manufacturer and model name.- Parameters:
manufacturer- the manufacturer name.modelName- the model name.
-
-
Method Details
-
setManufacturer
public ThisModelBuilder setManufacturer(List<org.somda.sdc.dpws.model.LocalizedStringType> manufacturer) Sets the manufacturer.- Parameters:
manufacturer- to set to- Returns:
- this builder
-
setManufacturerUrl
Sets the manufacturer url.- Parameters:
manufacturerUrl- to set to- Returns:
- this builder
-
setModelName
Sets the model name.- Parameters:
modelName- to set to- Returns:
- this builder
-
setModelNumber
Sets the model number.- Parameters:
modelNumber- to set to- Returns:
- this builder
-
setModelUrl
Sets the model url.- Parameters:
modelUrl- to set to- Returns:
- this builder
-
setPresentationUrl
Sets the presentation url.- Parameters:
presentationUrl- to set to- Returns:
- this builder
-
get
public org.somda.sdc.dpws.model.ThisModelType get()Gets the actual model type.- Returns:
- the internally stored model type. Caution: changes afterwards in the fluent interface will affect this returned value.
-