eu.planets_project.services.datatypes
Class Parameter.Builder

java.lang.Object
  extended by eu.planets_project.services.datatypes.Parameter.Builder
Enclosing class:
Parameter

public static final class Parameter.Builder
extends java.lang.Object

Builder for Parameters with optional values (type, description).


Constructor Summary
Parameter.Builder(java.lang.String name, java.lang.String value)
           
 
Method Summary
 Parameter build()
           
 Parameter.Builder description(java.lang.String description)
           
 Parameter.Builder type(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter.Builder

public Parameter.Builder(java.lang.String name,
                         java.lang.String value)
Parameters:
name - The Parameter name, see Parameter.Parameter(String, String)
value - The Parameter value, see Parameter.Parameter(String, String)
Method Detail

type

public Parameter.Builder type(java.lang.String type)
Parameters:
type - This is a String to hold the type, which should map to the xsd types and should be assumed to be a String if empty or null. In the future, we might add limits/validation? XSD-style?
Returns:
This builder, for cascaded calls

description

public Parameter.Builder description(java.lang.String description)
Parameters:
description - The description of this parameter/value pair. Might be used to give further information on the possible values and their meaning.
Returns:
This builder, for cascaded calls

build

public Parameter build()
Returns:
The built Parameter object


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.