public class SupportedCSS21 extends Object implements SupportedCSS
| Modifier and Type | Method and Description |
|---|---|
CSSProperty |
getDefaultProperty(String property)
Return default value of CSSProperty under given name
|
Term<?> |
getDefaultValue(String property)
Some CSSProperties have even additional values.
|
Set<String> |
getDefinedPropertyNames()
Returns names of defined properties
|
static SupportedCSS21 |
getInstance()
Gets instance of SupportedCSS21
|
int |
getOrdinal(String propertyName)
Returns ordinal number of propertyName.
|
String |
getPropertyName(int o)
Returns property name according to ordinal number
|
String |
getRandomPropertyName()
For testing, this should get name of randomly chosen CSSProperty.
|
int |
getTotalProperties()
Returns total number of properties defined
|
boolean |
isSupportedCSSProperty(String property)
Checks whether property is supported
|
boolean |
isSupportedMedia(String media)
Checks whether media type is supported
|
public static final SupportedCSS21 getInstance()
public boolean isSupportedMedia(String media)
SupportedCSSisSupportedMedia in interface SupportedCSSmedia - Name of media, such as screentrue if supported, false otherwisepublic final boolean isSupportedCSSProperty(String property)
SupportedCSSisSupportedCSSProperty in interface SupportedCSSproperty - Name of CSS propertytrue if supported, false otherwisepublic final CSSProperty getDefaultProperty(String property)
SupportedCSSgetDefaultProperty in interface SupportedCSSproperty - Name of CSSPropertynull
when property with this name is not foundpublic final Term<?> getDefaultValue(String property)
SupportedCSSbackground-position,
has default value of list with two percentages 0% 0%getDefaultValue in interface SupportedCSSproperty - Name of CSSPropertynull
when property with this name is not foundpublic final int getTotalProperties()
SupportedCSSgetTotalProperties in interface SupportedCSSpublic final Set<String> getDefinedPropertyNames()
SupportedCSSgetDefinedPropertyNames in interface SupportedCSSpublic String getRandomPropertyName()
SupportedCSSgetRandomPropertyName in interface SupportedCSSpublic int getOrdinal(String propertyName)
SupportedCSSgetOrdinal in interface SupportedCSSpropertyName - Name of property-1 elsewherepublic String getPropertyName(int o)
SupportedCSSgetPropertyName in interface SupportedCSSo - Ordinal number previously retrieved by getOrdinal()null if not foundCopyright © 2014. All rights reserved.