Oracle Application Server Wireless Java API Reference
B14043-01


oracle.panama.model
Interface MediaQueriable


public interface MediaQueriable

A MediaQueriable represents the media query type and features of a device.

See Also:
DeviceV2

Method Summary
 boolean getMediaFeatureBoolean(java.lang.String feature)
          Gets the media feature value.
 int getMediaFeatureInteger(java.lang.String feature)
          Gets the media feature value.
 double getMediaFeatureLength(java.lang.String feature, java.lang.String unit)
          Gets the media feature value.
 java.util.HashSet getMediaFeatureSet(java.lang.String feature)
          Gets the media feature value.
 java.lang.String getMediaFeatureString(java.lang.String feature)
          Gets the media feature value.
 java.lang.String getMediaType()
          Gets the media type property value
 boolean isMediaType(java.lang.String mediaType)
          Test if the device media type matches the parameter

 

Method Detail

getMediaFeatureBoolean

public boolean getMediaFeatureBoolean(java.lang.String feature)
Gets the media feature value.
Parameters:
feature - the media feature
Returns:
boolean the value of the media feature.

getMediaFeatureInteger

public int getMediaFeatureInteger(java.lang.String feature)
Gets the media feature value.
Parameters:
feature - the media feature
Returns:
int the value of the media feature.

getMediaFeatureLength

public double getMediaFeatureLength(java.lang.String feature,
                                    java.lang.String unit)
Gets the media feature value.
Parameters:
feature - the media feature
unit - the absolute unit for the length
Returns:
double the value of the media feature

getMediaFeatureSet

public java.util.HashSet getMediaFeatureSet(java.lang.String feature)
Gets the media feature value.
Parameters:
feature - the media feature
Returns:
HashSet the value of the media feature.

getMediaFeatureString

public java.lang.String getMediaFeatureString(java.lang.String feature)
Gets the media feature value.
Parameters:
feature - the media feature
Returns:
boolean the value of the media feature.

getMediaType

public java.lang.String getMediaType()
Gets the media type property value
Returns:
String the media type property value

isMediaType

public boolean isMediaType(java.lang.String mediaType)
Test if the device media type matches the parameter
Returns:
String the media type property value

Oracle Application Server Wireless Java API Reference
B14043-01


Copyright © 2004 Oracle Corporation. All Rights Reserved.