com.ibm.portal.devicesupport
Interface DeviceClassCapable

All Known Subinterfaces:
ContentLabel, ContentNode, ContentPage, ContentURL, ExternalContentURL, InternalContentURL, ModifiableContentLabel, ModifiableContentNode, ModifiableContentPage, ModifiableContentURL, ModifiableDeviceClassCapable, ModifiableExternalContentURL, ModifiableInternalContentURL, ModifiableStaticContentPage, StaticContentPage

public interface DeviceClassCapable

This interface describes resources that support device classes.

Since:
7.0.0.2

Method Summary
 java.util.Set<? extends DeviceClass> getDeviceClasses()
          This method returns the set of supported device classes by this resource
 boolean supportsDeviceClass(DeviceClass aDeviceClass)
          This method checks if the device class capable element can/should be displayed in the given device class.
 

Method Detail

getDeviceClasses

java.util.Set<? extends DeviceClass> getDeviceClasses()
                                                      throws ModelException,
                                                             DataException
This method returns the set of supported device classes by this resource

Returns:
a set of DeviceClass objects which denote the device classes that are supported by the resource, never null.
Throws:
ModelException
DataException

supportsDeviceClass

boolean supportsDeviceClass(DeviceClass aDeviceClass)
                            throws ModelException
This method checks if the device class capable element can/should be displayed in the given device class.

Parameters:
aDeviceClass - The device class to check for
Returns:
true, if the device class is in the list of supported device classes, false otherwise.
Throws:
ModelException - if an error occured while accessing model information