public final class CommonRestrictions extends Object
Properties
instances. Each method return a newly created
list that can safely be modified without impacting subsequent calls.Modifier and Type | Method and Description |
---|---|
static PropertyMatchers |
domContentTypes(String field)
Common content-types defining a DOM document.
|
static PropertyMatchers |
htmlContentTypes(String field)
Default content-types defining an HTML or XHTML document.
|
static PropertyMatchers |
imageIOStandardContentTypes(String field)
Content types of standard image format supported by all Java ImageIO
implementations: JPEG, PNG, GIF, BMP, WBMP.
|
static PropertyMatchers |
xmlContentTypes(String field)
Common content-types defining an XML document.
|
static PropertyMatchers |
xmlFeedContentTypes(String field)
Common content-types defining an XML feed (RSS, Atom).
|
public static PropertyMatchers xmlFeedContentTypes(String field)
Common content-types defining an XML feed (RSS, Atom). The field has to contain one of these for the restriction to apply:
field
- name of Properties fieldpublic static PropertyMatchers domContentTypes(String field)
Common content-types defining a DOM document. That is, documents that are HTML, XHTML, or XML-based. The field has to contain one of these for the restriction to apply:
field
- name of Properties fieldpublic static PropertyMatchers htmlContentTypes(String field)
Default content-types defining an HTML or XHTML document. The field has to contain one of these for the restriction to apply:
field
- name of Properties fieldpublic static PropertyMatchers xmlContentTypes(String field)
Common content-types defining an XML document. The field has to contain one of these for the restriction to apply:
field
- name of Properties fieldpublic static PropertyMatchers imageIOStandardContentTypes(String field)
Content types of standard image format supported by all Java ImageIO implementations: JPEG, PNG, GIF, BMP, WBMP. The field has to contain one of these for the restriction to apply:
field
- name of Properties fieldCopyright © 2009–2023 Norconex Inc.. All rights reserved.