org.jboss.osgi.metadata
Interface Parameter


public interface Parameter

Parameter interface - single value or set of values.

Author:
Ales Justin

Method Summary
 void addValue(String value)
          Add value.
 Object getValue()
          Get value.
 boolean isCollection()
          Has multiple values.
 

Method Detail

getValue

Object getValue()
Get value. Simple string value or collection of string values.

Returns:
value

addValue

void addValue(String value)
Add value.

Parameters:
value - string to add

isCollection

boolean isCollection()
Has multiple values. Used when same name is used for multiple parameter values. Value _can_ be casted into Collection.

Returns:
true is returned type is Collection, otherwise false


Copyright © 2010. All Rights Reserved.