public class ResourceCapability extends Object
Constructor and Description |
---|
ResourceCapability(Capability capability)
Create new ResourceCapability representing the given capability.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameterObject(String property,
ParameterObjectValue value)
Add a value for a parameter object.
|
void |
addParameterValue(Parameter param,
Object value)
Add a value for the given capability parameter.
|
Capability |
getCapability()
Get the capability this has information for.
|
Set<String> |
getParameterObjectProperties()
Get all properties for which there are parameter object values.
|
Set<ParameterObjectValue> |
getParameterObjectValues(String property)
Get parameter object values for the given property.
|
Collection<ParameterValue> |
getParameters()
Get all parameter values related to the capability.
|
public ResourceCapability(Capability capability)
capability
- capability for which this will have parameterspublic Capability getCapability()
public void addParameterObject(String property, ParameterObjectValue value)
property
- property for which this is a value such as hasItemSize_maxvalue
- value for the parameter objectpublic Set<String> getParameterObjectProperties()
public Set<ParameterObjectValue> getParameterObjectValues(String property)
property
- the property for example hasItemSize_minpublic void addParameterValue(Parameter param, Object value)
param
- the parametervalue
- a value for the parameterpublic Collection<ParameterValue> getParameters()
Copyright © 2017. All rights reserved.