org.apache.sling.jcr.contentparser
bundle;
see org.apache.sling.contentparser.api
@ProviderType public final class ParserOptions extends Object
Modifier and Type | Field and Description |
---|---|
static Set<String> |
DEFAULT_IGNORE_RESOURCE_NAMES
Deprecated.
Default list of resource names that should be ignored.
|
static EnumSet<JsonParserFeature> |
DEFAULT_JSON_PARSER_FEATURES
Deprecated.
List of JSON parser features activated by default.
|
static String |
DEFAULT_PRIMARY_TYPE
Deprecated.
Default primary type.
|
static Set<String> |
DEFAULT_REMOVE_PROPERTY_NAME_PREFIXES
Deprecated.
Default list of prefixes to remove from property names.
|
Constructor and Description |
---|
ParserOptions()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ParserOptions |
defaultPrimaryType(String value)
Deprecated.
Default "jcr:primaryType" property for resources that have no explicit value for this value.
|
ParserOptions |
detectCalendarValues(boolean value)
Deprecated.
Some content formats like JSON do not contain information to identify date/time values.
|
String |
getDefaultPrimaryType()
Deprecated.
|
Set<String> |
getIgnorePropertyNames()
Deprecated.
|
Set<String> |
getIgnoreResourceNames()
Deprecated.
|
EnumSet<JsonParserFeature> |
getJsonParserFeatures()
Deprecated.
|
Set<String> |
getRemovePropertyNamePrefixes()
Deprecated.
|
ParserOptions |
ignorePropertyNames(Set<String> value)
Deprecated.
Set a list of property names that should be ignored when parsing the content file.
|
ParserOptions |
ignoreResourceNames(Set<String> value)
Deprecated.
Set a list of resource/node names that should be ignored when parsing the content file.
|
boolean |
isDetectCalendarValues()
Deprecated.
|
ParserOptions |
jsonParserFeatures(EnumSet<JsonParserFeature> value)
Deprecated.
Set set of features the JSON parser should apply when parsing files.
|
ParserOptions |
jsonParserFeatures(JsonParserFeature... value)
Deprecated.
|
ParserOptions |
removePropertyNamePrefixes(Set<String> value)
Deprecated.
Set a list of property name prefixes that should be removed automatically from the property name.
|
public static final String DEFAULT_PRIMARY_TYPE
public static final Set<String> DEFAULT_REMOVE_PROPERTY_NAME_PREFIXES
public static final Set<String> DEFAULT_IGNORE_RESOURCE_NAMES
public static final EnumSet<JsonParserFeature> DEFAULT_JSON_PARSER_FEATURES
public ParserOptions defaultPrimaryType(String value)
value
- Default primary type.public String getDefaultPrimaryType()
public ParserOptions detectCalendarValues(boolean value)
value
- Activate calendar value detectionpublic boolean isDetectCalendarValues()
public ParserOptions ignorePropertyNames(Set<String> value)
value
- List of property namespublic ParserOptions ignoreResourceNames(Set<String> value)
value
- List of resource/node namespublic ParserOptions removePropertyNamePrefixes(Set<String> value)
value
- List of property name prefixespublic ParserOptions jsonParserFeatures(EnumSet<JsonParserFeature> value)
value
- JSON parser featurespublic ParserOptions jsonParserFeatures(JsonParserFeature... value)
public EnumSet<JsonParserFeature> getJsonParserFeatures()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.