eu.planets_project.services.datatypes
Class Parameter.Builder
java.lang.Object
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).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.