Package | Description |
---|---|
org.apache.sling.jcr.contentparser |
Parser for repository content serialized e.g.
|
org.apache.sling.jcr.contentparser.impl |
Modifier and Type | Method and Description |
---|---|
ParserOptions |
ParserOptions.defaultPrimaryType(String value)
Default "jcr:primaryType" property for resources that have no explicit value for this value.
|
ParserOptions |
ParserOptions.detectCalendarValues(boolean value)
Some content formats like JSON do not contain information to identify date/time values.
|
ParserOptions |
ParserOptions.ignorePropertyNames(Set<String> value)
Set a list of property names that should be ignored when parsing the content file.
|
ParserOptions |
ParserOptions.ignoreResourceNames(Set<String> value)
Set a list of resource/node names that should be ignored when parsing the content file.
|
ParserOptions |
ParserOptions.jsonParserFeatures(EnumSet<JsonParserFeature> value)
Set set of features the JSON parser should apply when parsing files.
|
ParserOptions |
ParserOptions.jsonParserFeatures(JsonParserFeature... value) |
ParserOptions |
ParserOptions.removePropertyNamePrefixes(Set<String> value)
Set a list of property name prefixes that should be removed automatically from the property name.
|
Modifier and Type | Method and Description |
---|---|
static ContentParser |
ContentParserFactory.create(ContentType type,
ParserOptions options)
Create content parser.
|
Constructor and Description |
---|
JcrXmlContentParser(ParserOptions options) |
JsonContentParser(ParserOptions options) |
XmlContentParser(ParserOptions options) |
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.