public final class CssSchema
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CssSchema.Property |
Describes how CSS interprets tokens after the ":" for a property.
|
| Modifier and Type | Field | Description |
|---|---|---|
static CssSchema |
DEFAULT |
A schema that includes only those properties on the default schema
white-list.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<java.lang.String> |
allowedProperties() |
The set of CSS properties allowed by this schema.
|
static void |
main(java.lang.String... argv) |
Dumps key and literal list to stdout for easy examination.
|
static CssSchema |
union(CssSchema... cssSchemas) |
A schema that represents the union of the input schemas.
|
static CssSchema |
withProperties(java.lang.Iterable<? extends java.lang.String> propertyNames) |
A schema that includes all and only the named properties.
|
static CssSchema |
withProperties(java.util.Map<? extends java.lang.String,? extends CssSchema.Property> properties) |
A schema that includes all and only the named properties.
|
public static final CssSchema DEFAULT
public static CssSchema withProperties(java.lang.Iterable<? extends java.lang.String> propertyNames)
propertyNames - a series of lower-case CSS property names that appear
in the built-in CSS definitions. It is an error to mention an unknown
property name. This class's main method will dump a list of
known property names when run with zero arguments.public static CssSchema withProperties(java.util.Map<? extends java.lang.String,? extends CssSchema.Property> properties)
properties - maps lower-case CSS property names to property objects.public static CssSchema union(CssSchema... cssSchemas)
java.lang.IllegalArgumentException - if two schemas have properties with the
same name, but different (per .equals) CssSchema.Property values.public java.util.Set<java.lang.String> allowedProperties()
public static void main(java.lang.String... argv)
Copyright © 2019 OWASP. All rights reserved.