return null;
}
public ConsumerCapabilities toConsumerCapabilities()
{
ConsumerCapabilitiesImpl consumerCapabilities = new ConsumerCapabilitiesImpl();
consumerCapabilities.setSupportsGetMethod(getSupportsGetMethod());
List<String> modeStrings = getSupportedModes();
if (ParameterValidation.existsAndIsNotEmpty(modeStrings))
{
List<Mode> modes = new ArrayList<Mode>(modeStrings.size());
for (String modeString : modeStrings)
{
modes.add(Mode.create(modeString));
}
consumerCapabilities.setSupportedModes(modes);
}
List<String> windowStateStrings = getSupportedWindowStates();
if (ParameterValidation.existsAndIsNotEmpty(windowStateStrings))
{
List<WindowState> windowStates = new ArrayList<WindowState>(windowStateStrings.size());
for (String windowStateString : windowStateStrings)
{
windowStates.add(WindowState.create(windowStateString));
}
consumerCapabilities.setSupportedWindowStates(windowStates);
}
List<String> userProfileData = getSupportedUserProfileData();
if (ParameterValidation.existsAndIsNotEmpty(userProfileData))
{
consumerCapabilities.setSupportedUserProfileData(userProfileData);
}
List<String> userScopes = getSupportedUserScopes();
if (ParameterValidation.existsAndIsNotEmpty(userScopes))
{
consumerCapabilities.setSupportedUserScopes(userScopes);
}
return consumerCapabilities;
}