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