final AllowableKeywords allowableKeywords =
property.getStandardDetails().getAllowableKeywords();
if (allowableKeywords != null) {
List keywords = allowableKeywords.getKeywords();
for (int i = 0; i < keywords.size(); i++) {
StyleKeyword keyword = (StyleKeyword) keywords.get(i);
final String externalName =
CSS_NAME_MAPPER.getExternalString(property);
String externalKeywordName =
CSS_NAME_MAPPER.getExternalString(keyword);
String policy = "x-css.properties." + externalName +
".keyword." + externalKeywordName + ".support";
String value = getAncestorPolicyValue(device, policy);
if ("full".equals(value)) {
// Add the property definition to the css version.
cssProperty.addKeyword(keyword);
if (logger.isDebugEnabled()) {
logger.debug("Adding device CSS property '" +
property.getName() + "' keyword '" +
keyword.getName() + "'");
}
} else if ("none".equals(value)) {
// Remove the property definiton from the css version.
cssProperty.removeKeyword(keyword);
if (logger.isDebugEnabled()) {
logger.debug("Removing device CSS property '" +
property.getName() + "' keyword '" +
keyword.getName() + "'");
}
} else if (value == null || "default".equals(value)) {
// Leave the original definition.
} else {