public class RdfParserBuilder extends ReaderParserBuilder
psb
Constructor and Description |
---|
RdfParserBuilder()
Constructor, default settings.
|
RdfParserBuilder(PropertyStore ps)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RdfParserBuilder |
add(Map<String,Object> properties)
Adds multiple configuration properties on this object.
|
RdfParserBuilder |
addTo(String name,
Object value)
Adds a value to a SET or LIST property.
|
RdfParserBuilder |
addTo(String name,
String key,
Object value)
Adds or overwrites a value to a SET, LIST, or MAP property.
|
RdfParserBuilder |
annotations(Annotation... values)
Configuration property: Annotations.
|
RdfParserBuilder |
apply(PropertyStore copyFrom)
Copies the settings from the specified property store into this builder.
|
RdfParserBuilder |
applyAnnotations(AnnotationList al,
VarResolverSession vrs)
Applies a set of annotations to this property store.
|
RdfParserBuilder |
applyAnnotations(Class<?>... fromClasses)
Applies any of the various
|
RdfParserBuilder |
applyAnnotations(Method... fromMethods)
Applies any of the various
|
RdfParserBuilder |
arp_embedding(boolean value)
Configuration property: RDF/XML ARP property:
|
RdfParserBuilder |
arp_errorMode(String value)
Configuration property: RDF/XML ARP property:
|
RdfParserBuilder |
arp_iriRules(String value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
autoCloseStreams()
Configuration property: Auto-close streams.
|
RdfParserBuilder |
autoCloseStreams(boolean value)
Configuration property: Auto-close streams.
|
RdfParserBuilder |
beanClassVisibility(Visibility value)
Configuration property: Minimum bean class visibility.
|
RdfParserBuilder |
beanConstructorVisibility(Visibility value)
Configuration property: Minimum bean constructor visibility.
|
RdfParserBuilder |
beanDictionary(Class<?>... values)
Deprecated.
|
RdfParserBuilder |
beanDictionary(Object... values)
Deprecated.
|
RdfParserBuilder |
beanDictionaryRemove(Class<?>... values)
Deprecated.
|
RdfParserBuilder |
beanDictionaryRemove(Object... values)
Deprecated.
|
RdfParserBuilder |
beanDictionaryReplace(Class<?>... values)
Deprecated.
|
RdfParserBuilder |
beanDictionaryReplace(Object... values)
Deprecated.
|
RdfParserBuilder |
beanFieldVisibility(Visibility value)
Configuration property: Minimum bean field visibility.
|
RdfParserBuilder |
beanFilters(Class<?>... values)
Configuration property: Bean filters.
|
RdfParserBuilder |
beanFilters(Object... values)
Configuration property: Bean filters.
|
RdfParserBuilder |
beanFiltersRemove(Class<?>... values)
Configuration property: Bean filters.
|
RdfParserBuilder |
beanFiltersRemove(Object... values)
Configuration property: Bean filters.
|
RdfParserBuilder |
beanFiltersReplace(Class<?>... values)
Configuration property: Bean filters.
|
RdfParserBuilder |
beanFiltersReplace(Object... values)
Configuration property: Bean filters.
|
RdfParserBuilder |
beanMapPutReturnsOldValue()
Configuration property: BeanMap.put() returns old property value.
|
RdfParserBuilder |
beanMapPutReturnsOldValue(boolean value)
Configuration property: BeanMap.put() returns old property value.
|
RdfParserBuilder |
beanMethodVisibility(Visibility value)
Configuration property: Minimum bean method visibility.
|
RdfParserBuilder |
beansRequireDefaultConstructor()
Configuration property: Beans require no-arg constructors.
|
RdfParserBuilder |
beansRequireDefaultConstructor(boolean value)
Configuration property: Beans require no-arg constructors.
|
RdfParserBuilder |
beansRequireSerializable()
Configuration property: Beans require Serializable interface.
|
RdfParserBuilder |
beansRequireSerializable(boolean value)
Configuration property: Beans require Serializable interface.
|
RdfParserBuilder |
beansRequireSettersForGetters()
Configuration property: Beans require setters for getters.
|
RdfParserBuilder |
beansRequireSettersForGetters(boolean value)
Configuration property: Beans require setters for getters.
|
RdfParserBuilder |
beansRequireSomeProperties(boolean value)
Configuration property: Beans require at least one property.
|
RdfParserBuilder |
beanTypePropertyName(String value)
Configuration property: Bean type property name.
|
RdfParserBuilder |
bpi(Class<?> beanClass,
String value)
Configuration property: Bean property includes.
|
RdfParserBuilder |
bpi(Map<String,String> values)
Configuration property: Bean property includes.
|
RdfParserBuilder |
bpi(String beanClassName,
String value)
Configuration property: Bean property includes.
|
RdfParserBuilder |
bpro(Class<?> beanClass,
String value)
Configuration property: Read-only bean properties.
|
RdfParserBuilder |
bpro(Map<String,String> values)
Configuration property: Read-only bean properties.
|
RdfParserBuilder |
bpro(String beanClassName,
String value)
Configuration property: Read-only bean properties.
|
RdfParserBuilder |
bpwo(Class<?> beanClass,
String properties)
Configuration property: Write-only bean properties.
|
RdfParserBuilder |
bpwo(Map<String,String> values)
Configuration property: Write-only bean properties.
|
RdfParserBuilder |
bpwo(String beanClassName,
String value)
Configuration property: Write-only bean properties.
|
RdfParserBuilder |
bpx(Class<?> beanClass,
String properties)
Configuration property: Bean property excludes.
|
RdfParserBuilder |
bpx(Map<String,String> values)
Configuration property: Bean property excludes.
|
RdfParserBuilder |
bpx(String beanClassName,
String value)
Configuration property: Bean property excludes.
|
RdfParser |
build()
Build the object.
|
RdfParserBuilder |
collectionFormat(RdfCollectionFormat value)
Configuration property: RDF format for representing collections and arrays.
|
RdfParserBuilder |
collectionFormat(String value)
Configuration property: RDF format for representing collections and arrays.
|
RdfParserBuilder |
debug()
Configuration property: Debug mode.
|
RdfParserBuilder |
debugOutputLines(int value)
Configuration property: Debug output lines.
|
RdfParserBuilder |
dictionary(Class<?>... values)
Configuration property: Bean dictionary.
|
RdfParserBuilder |
dictionary(Object... values)
Configuration property: Bean dictionary.
|
RdfParserBuilder |
dictionaryRemove(Class<?>... values)
Configuration property: Bean dictionary.
|
RdfParserBuilder |
dictionaryRemove(Object... values)
Configuration property: Bean dictionary.
|
RdfParserBuilder |
dictionaryReplace(Class<?>... values)
Configuration property: Bean dictionary.
|
RdfParserBuilder |
dictionaryReplace(Object... values)
Configuration property: Bean dictionary.
|
<T> RdfParserBuilder |
example(Class<T> c,
T o)
Configuration property: POJO example.
|
<T> RdfParserBuilder |
exampleJson(Class<T> c,
String value)
Configuration property: POJO example.
|
RdfParserBuilder |
fileCharset(Charset value)
Configuration property: File charset.
|
RdfParserBuilder |
ignoreInvocationExceptionsOnGetters()
Configuration property: Ignore invocation errors on getters.
|
RdfParserBuilder |
ignoreInvocationExceptionsOnGetters(boolean value)
Configuration property: Ignore invocation errors on getters.
|
RdfParserBuilder |
ignoreInvocationExceptionsOnSetters()
Configuration property: Ignore invocation errors on setters.
|
RdfParserBuilder |
ignoreInvocationExceptionsOnSetters(boolean value)
Configuration property: Ignore invocation errors on setters.
|
RdfParserBuilder |
ignorePropertiesWithoutSetters(boolean value)
Configuration property: Ignore properties without setters.
|
RdfParserBuilder |
ignoreUnknownBeanProperties()
Configuration property: Ignore unknown properties.
|
RdfParserBuilder |
ignoreUnknownBeanProperties(boolean value)
Configuration property: Ignore unknown properties.
|
RdfParserBuilder |
ignoreUnknownNullBeanProperties(boolean value)
Configuration property: Ignore unknown properties with null values.
|
RdfParserBuilder |
implClass(Class<?> interfaceClass,
Class<?> implClass)
Configuration property: Implementation classes.
|
RdfParserBuilder |
implClasses(Map<String,Class<?>> values)
Configuration property: Implementation classes.
|
RdfParserBuilder |
juneauBpNs(Namespace value)
Configuration property: Default XML namespace for bean properties.
|
RdfParserBuilder |
juneauBpNs(String value)
Configuration property: Default XML namespace for bean properties.
|
RdfParserBuilder |
juneauNs(Namespace value)
Configuration property: XML namespace for Juneau properties.
|
RdfParserBuilder |
juneauNs(String value)
Configuration property: XML namespace for Juneau properties.
|
RdfParserBuilder |
language(String value)
Configuration property: RDF language.
|
RdfParserBuilder |
listener(Class<? extends ParserListener> value)
Configuration property: Parser listener.
|
RdfParserBuilder |
locale(Locale value)
Configuration property: Locale.
|
RdfParserBuilder |
looseCollections()
Configuration property: Collections should be serialized and parsed as loose collections.
|
RdfParserBuilder |
looseCollections(boolean value)
Configuration property: Collections should be serialized and parsed as loose collections.
|
RdfParserBuilder |
mediaType(MediaType value)
Configuration property: Media type.
|
RdfParserBuilder |
n3_abbrevBaseUri(boolean value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_indentProperty(int value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_minGap(int value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_objectLists(boolean value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_propertyColumn(int value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_subjectColumn(int value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_useDoubles(boolean value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_usePropertySymbols(boolean value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_useTripleQuotedStrings(boolean value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3_widePropertyLen(int value)
Configuration property: N3/Turtle property:
|
RdfParserBuilder |
n3()
Configuration property: RDF language.
|
RdfParserBuilder |
notBeanClasses(Class<?>... values)
Configuration property: Bean class exclusions.
|
RdfParserBuilder |
notBeanClasses(Object... values)
Configuration property: Bean class exclusions.
|
RdfParserBuilder |
notBeanClassesRemove(Class<?>... values)
Configuration property: Bean class exclusions.
|
RdfParserBuilder |
notBeanClassesRemove(Object... values)
Configuration property: Bean class exclusions.
|
RdfParserBuilder |
notBeanClassesReplace(Class<?>... values)
Configuration property: Bean class exclusions.
|
RdfParserBuilder |
notBeanClassesReplace(Object... values)
Configuration property: Bean class exclusions.
|
RdfParserBuilder |
notBeanPackages(Object... values)
Configuration property: Bean package exclusions.
|
RdfParserBuilder |
notBeanPackages(String... values)
Configuration property: Bean package exclusions.
|
RdfParserBuilder |
notBeanPackagesRemove(Object... values)
Configuration property: Bean package exclusions.
|
RdfParserBuilder |
notBeanPackagesRemove(String... values)
Configuration property: Bean package exclusions.
|
RdfParserBuilder |
notBeanPackagesReplace(Object... values)
Configuration property: Bean package exclusions.
|
RdfParserBuilder |
notBeanPackagesReplace(String... values)
Configuration property: Bean package exclusions.
|
RdfParserBuilder |
ntriple()
Configuration property: RDF language.
|
RdfParserBuilder |
pojoSwaps(Class<?>... values)
Configuration property: POJO swaps.
|
RdfParserBuilder |
pojoSwaps(Object... values)
Configuration property: POJO swaps.
|
RdfParserBuilder |
pojoSwapsRemove(Class<?>... values)
Configuration property: POJO swaps.
|
RdfParserBuilder |
pojoSwapsRemove(Object... values)
Configuration property: POJO swaps.
|
RdfParserBuilder |
pojoSwapsReplace(Class<?>... values)
Configuration property: POJO swaps.
|
RdfParserBuilder |
pojoSwapsReplace(Object... values)
Configuration property: POJO swaps.
|
RdfParserBuilder |
rdfxml_allowBadUris(boolean value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_attributeQuoteChar(String value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_blockRules(String value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_longId(boolean value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_relativeUris(String value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_showDoctypeDeclaration(boolean value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_showXmlDeclaration(String value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_tab(int value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
rdfxml_xmlBase(String value)
Configuration property: RDF/XML property:
|
RdfParserBuilder |
removeFrom(String name,
Object value)
Removes a value from a SET, LIST, or MAP property.
|
RdfParserBuilder |
set(Map<String,Object> properties)
Sets multiple configuration properties on this object.
|
RdfParserBuilder |
set(String name,
Object value)
Sets a configuration property on this object.
|
RdfParserBuilder |
sortProperties()
Configuration property: Sort bean properties.
|
RdfParserBuilder |
sortProperties(boolean value)
Configuration property: Sort bean properties.
|
RdfParserBuilder |
streamCharset(Charset value)
Configuration property: Input stream charset.
|
RdfParserBuilder |
strict()
Configuration property: Strict mode.
|
RdfParserBuilder |
strict(boolean value)
Configuration property: Strict mode.
|
RdfParserBuilder |
timeZone(TimeZone value)
Configuration property: TimeZone.
|
RdfParserBuilder |
trimStrings()
Configuration property: Trim parsed strings.
|
RdfParserBuilder |
trimStrings(boolean value)
Configuration property: Trim parsed strings.
|
RdfParserBuilder |
trimWhitespace()
Configuration property: Trim whitespace from text elements.
|
RdfParserBuilder |
trimWhitespace(boolean value)
Configuration property: Trim whitespace from text elements.
|
RdfParserBuilder |
turtle()
Shortcut for calling
language( . |
RdfParserBuilder |
unbuffered()
Configuration property: Unbuffered.
|
RdfParserBuilder |
unbuffered(boolean value)
Configuration property: Unbuffered.
|
RdfParserBuilder |
useEnumNames()
Configuration property: Use enum names.
|
RdfParserBuilder |
useEnumNames(boolean value)
Configuration property: Use enum names.
|
RdfParserBuilder |
useInterfaceProxies(boolean value)
Configuration property: Use interface proxies.
|
RdfParserBuilder |
useJavaBeanIntrospector()
Configuration property: Use Java Introspector.
|
RdfParserBuilder |
useJavaBeanIntrospector(boolean value)
Configuration property: Use Java Introspector.
|
RdfParserBuilder |
xml()
Shortcut for calling
language( . |
RdfParserBuilder |
xmlabbrev()
Shortcut for calling
language( . |
debug, examples, excludeProperties, excludeProperties, excludeProperties, fluentSetters, fluentSetters, includeProperties, includeProperties, includeProperties, propertyNamer
build, getPropertyStore, getPropertyStoreBuilder, peek, peek
public RdfParserBuilder()
public RdfParserBuilder(PropertyStore ps)
ps
- The initial configuration settings for this builder.public RdfParser build()
ContextBuilder
build
in class ParserBuilder
public RdfParserBuilder juneauNs(String value)
value
- The new value for this property.public RdfParserBuilder juneauBpNs(String value)
value
- The new value for this property.public RdfParserBuilder arp_iriRules(String value)
Set the engine for checking and resolving.
Possible values:
value
- The new value for this property.public RdfParserBuilder arp_errorMode(String value)
This allows a coarse-grained approach to control of error handling.
Possible values:
value
- The new value for this property.public RdfParserBuilder arp_embedding(boolean value)
Sets ARP to look for RDF embedded within an enclosing XML document.
value
- The new value for this property.public RdfParserBuilder rdfxml_xmlBase(String value)
The value to be included for an
value
- The new value for this property.public RdfParserBuilder rdfxml_longId(boolean value)
Whether to use long ID's for anon resources. Short ID's are easier to read, but can run out of memory on very large models.
value
- The new value for this property.public RdfParserBuilder rdfxml_allowBadUris(boolean value)
URIs in the graph are, by default, checked prior to serialization.
value
- The new value for this property.public RdfParserBuilder rdfxml_relativeUris(String value)
What sort of relative URIs should be used.
A comma separate list of options:
The default value is
value
- The new value for this property.public RdfParserBuilder rdfxml_showXmlDeclaration(String value)
Possible values:
value
- The new value for this property.public RdfParserBuilder rdfxml_showDoctypeDeclaration(boolean value)
If true, an XML doctype declaration is included in the output.
This declaration includes a
value
- The new value for this property.public RdfParserBuilder rdfxml_tab(int value)
The number of spaces with which to indent XML child elements.
value
- The new value for this property.public RdfParserBuilder rdfxml_attributeQuoteChar(String value)
The XML attribute quote character.
value
- The new value for this property.public RdfParserBuilder rdfxml_blockRules(String value)
A list of
value
- The new value for this property.public RdfParserBuilder n3_minGap(int value)
Minimum gap between items on a line.
value
- The new value for this property.public RdfParserBuilder n3_objectLists(boolean value)
Print object lists as comma separated lists.
value
- The new value for this property.public RdfParserBuilder n3_subjectColumn(int value)
If the subject is shorter than this value, the first property may go on the same line.
value
- The new value for this property.public RdfParserBuilder n3_propertyColumn(int value)
Width of the property column.
value
- The new value for this property.public RdfParserBuilder n3_indentProperty(int value)
Width to indent properties.
value
- The new value for this property.public RdfParserBuilder n3_widePropertyLen(int value)
Width of the property column.
Must be longer than
value
- The new value for this property.public RdfParserBuilder n3_abbrevBaseUri(boolean value)
Control whether to use abbreviations
value
- The new value for this property.public RdfParserBuilder n3_usePropertySymbols(boolean value)
Control whether to use
value
- The new value for this property.public RdfParserBuilder n3_useTripleQuotedStrings(boolean value)
Allow the use of
value
- The new value for this property.public RdfParserBuilder n3_useDoubles(boolean value)
Allow the use doubles as
value
- The new value for this property.public RdfParserBuilder collectionFormat(String value)
Possible values:
value
- The new value for this property.public RdfParserBuilder collectionFormat(RdfCollectionFormat value)
Possible values:
value
- The new value for this property.public RdfParserBuilder juneauBpNs(Namespace value)
value
- The new value for this property.
{j:'http://www.apache.org/juneaubp/' }
.public RdfParserBuilder juneauNs(Namespace value)
value
- The new value for this property.
{j:'http://www.apache.org/juneau/' }
.public RdfParserBuilder language(String value)
Can be any of the following:
value
- The new value for this property.public RdfParserBuilder looseCollections(boolean value)
When specified, collections of resources are handled as loose collections of resources in RDF instead of resources that are children of an RDF collection (e.g. Sequence, Bag).
value
- The new value for this property.
public RdfParserBuilder looseCollections()
Shortcut for calling looseCollection(
.
public RdfParserBuilder n3()
Shortcut for calling language(
.
public RdfParserBuilder ntriple()
Shortcut for calling language(
.
public RdfParserBuilder trimWhitespace(boolean value)
If
value
- The new value for this property.
public RdfParserBuilder trimWhitespace()
Shortcut for calling trimWhitespace(
.
public RdfParserBuilder turtle()
language(LANG_TURTLE )
.
public RdfParserBuilder xml()
language(LANG_RDF_XML )
.
public RdfParserBuilder xmlabbrev()
language(LANG_RDF_XML_ABBREV )
.
public RdfParserBuilder fileCharset(Charset value)
ReaderParserBuilder
The character set to use for reading
fileCharset
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder streamCharset(Charset value)
ReaderParserBuilder
The character set to use for converting
streamCharset
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder autoCloseStreams(boolean value)
ParserBuilder
If
autoCloseStreams
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder autoCloseStreams()
ParserBuilder
Shortcut for calling autoCloseStreams(
.
autoCloseStreams
in class ReaderParserBuilder
public RdfParserBuilder debugOutputLines(int value)
ParserBuilder
When parse errors occur, this specifies the number of lines of input before and after the error location to be printed as part of the exception message.
debugOutputLines
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder listener(Class<? extends ParserListener> value)
ParserBuilder
Class used to listen for errors and warnings that occur during parsing.
listener
in class ReaderParserBuilder
value
- The new value for this property.public RdfParserBuilder strict(boolean value)
ParserBuilder
If
strict
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder strict()
ParserBuilder
Shortcut for calling strict(
.
strict
in class ReaderParserBuilder
public RdfParserBuilder trimStrings(boolean value)
ParserBuilder
If String.trim()
before being added to
the POJO.
trimStrings
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder trimStrings()
ParserBuilder
Shortcut for calling trimStrings(
.
trimStrings
in class ReaderParserBuilder
public RdfParserBuilder unbuffered(boolean value)
ParserBuilder
If
unbuffered
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder unbuffered()
ParserBuilder
Shortcut for calling unbuffered(
.
unbuffered
in class ReaderParserBuilder
public RdfParserBuilder beanClassVisibility(Visibility value)
BeanContextBuilder
Classes are not considered beans unless they meet the minimum visibility requirements.
For example, if the visibility is
beanClassVisibility
in class ReaderParserBuilder
value
- The new value for this property.
Visibility.PUBLIC
.public RdfParserBuilder beanConstructorVisibility(Visibility value)
BeanContextBuilder
Only look for constructors with the specified minimum visibility.
beanConstructorVisibility
in class ReaderParserBuilder
value
- The new value for this property.
Visibility.PUBLIC
.@Deprecated public RdfParserBuilder beanDictionary(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Class...)
Same as BeanContextBuilder.beanDictionary(Object...)
but takes in an array of classes.
beanDictionary
in class ReaderParserBuilder
values
- The values to add to this property.@Deprecated public RdfParserBuilder beanDictionary(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Object...)
Adds to the list of classes that make up the bean dictionary in this bean context.
beanDictionary
in class ReaderParserBuilder
values
- The values to add to this property.@Deprecated public RdfParserBuilder beanDictionaryReplace(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionaryReplace(Class...)
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
beanDictionaryReplace
in class ReaderParserBuilder
values
- The new values for this property.@Deprecated public RdfParserBuilder beanDictionaryReplace(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionaryReplace(Object...)
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
beanDictionaryReplace
in class ReaderParserBuilder
values
- The new values for this property.@Deprecated public RdfParserBuilder beanDictionaryRemove(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionaryRemove(Class...)
Removes from the list of classes that make up the bean dictionary in this bean context.
beanDictionaryRemove
in class ReaderParserBuilder
values
- The values to remove from this property.@Deprecated public RdfParserBuilder beanDictionaryRemove(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionaryRemove(Object...)
Removes from the list of classes that make up the bean dictionary in this bean context.
beanDictionaryRemove
in class ReaderParserBuilder
values
- The values to remove from this property.public RdfParserBuilder beanFieldVisibility(Visibility value)
BeanContextBuilder
Only look for bean fields with the specified minimum visibility.
beanFieldVisibility
in class ReaderParserBuilder
value
- The new value for this property.
Visibility.PUBLIC
.public RdfParserBuilder beanFilters(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...)
but takes in an array of classes.
beanFilters
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder beanFilters(Object... values)
BeanContextBuilder
This is a programmatic equivalent to the @Bean
annotation.
It's useful when you want to use the Bean annotation functionality, but you don't have the ability to alter
the bean classes.
beanFilters
in class ReaderParserBuilder
values
- The values to add to this property.
@Bean(typeName)
.
BeanDictionaryList
containing a collection of bean classes with type name annotations.
BeanDictionaryMap
containing a mapping of type names to classes without type name annotations.
public RdfParserBuilder beanFiltersReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...)
but replaces the existing values.
beanFiltersReplace
in class ReaderParserBuilder
values
- The new values for this property.
@Bean(typeName)
.
BeanDictionaryList
containing a collection of bean classes with type name annotations.
BeanDictionaryMap
containing a mapping of type names to classes without type name annotations.
public RdfParserBuilder beanFiltersReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...)
but replaces the existing values.
beanFiltersReplace
in class ReaderParserBuilder
values
- The new values for this property.
@Bean(typeName)
.
BeanDictionaryList
containing a collection of bean classes with type name annotations.
BeanDictionaryMap
containing a mapping of type names to classes without type name annotations.
public RdfParserBuilder beanFiltersRemove(Class<?>... values)
BeanContextBuilder
Removes from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove
in class ReaderParserBuilder
values
- The values to remove from this property.
@Bean(typeName)
.
BeanDictionaryList
containing a collection of bean classes with type name annotations.
BeanDictionaryMap
containing a mapping of type names to classes without type name annotations.
public RdfParserBuilder beanFiltersRemove(Object... values)
BeanContextBuilder
Removes from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove
in class ReaderParserBuilder
values
- The values to remove from this property.
@Bean(typeName)
.
BeanDictionaryList
containing a collection of bean classes with type name annotations.
BeanDictionaryMap
containing a mapping of type names to classes without type name annotations.
public RdfParserBuilder beanMapPutReturnsOldValue(boolean value)
BeanContextBuilder
If BeanMap.put()
method will return old property
values.
Otherwise, it returns
beanMapPutReturnsOldValue
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder beanMapPutReturnsOldValue()
BeanContextBuilder
Shortcut for calling beanMapPutReturnsOldValue(
.
beanMapPutReturnsOldValue
in class ReaderParserBuilder
public RdfParserBuilder beanMethodVisibility(Visibility value)
BeanContextBuilder
Only look for bean methods with the specified minimum visibility.
beanMethodVisibility
in class ReaderParserBuilder
value
- The new value for this property.
Visibility.PUBLIC
public RdfParserBuilder beansRequireDefaultConstructor(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
beansRequireDefaultConstructor
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder beansRequireDefaultConstructor()
BeanContextBuilder
Shortcut for calling beansRequireDefaultConstructor(
.
beansRequireDefaultConstructor
in class ReaderParserBuilder
public RdfParserBuilder beansRequireSerializable(boolean value)
BeanContextBuilder
If Serializable
interface to be considered a bean.
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
beansRequireSerializable
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder beansRequireSerializable()
BeanContextBuilder
Shortcut for calling beansRequireSerializable(
.
beansRequireSerializable
in class ReaderParserBuilder
public RdfParserBuilder beansRequireSettersForGetters(boolean value)
BeanContextBuilder
If
Otherwise, they will be ignored.
beansRequireSettersForGetters
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder beansRequireSettersForGetters()
BeanContextBuilder
Shortcut for calling beansRequireSettersForGetters(
.
beansRequireSettersForGetters
in class ReaderParserBuilder
public RdfParserBuilder beansRequireSomeProperties(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
beansRequireSomeProperties
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder beanTypePropertyName(String value)
BeanContextBuilder
This specifies the name of the bean property used to store the dictionary name of a bean type so that the parser knows the data type to reconstruct.
beanTypePropertyName
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder bpi(Class<?> beanClass, String value)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
bpi
in class ReaderParserBuilder
beanClass
- The bean class.value
- Comma-delimited list of property names.public RdfParserBuilder bpi(Map<String,String> values)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
bpi
in class ReaderParserBuilder
values
- The new value for this property.public RdfParserBuilder bpi(String beanClassName, String value)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
bpi
in class ReaderParserBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfParserBuilder bpx(Class<?> beanClass, String properties)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean class.
bpx
in class ReaderParserBuilder
beanClass
- The bean class.properties
- Comma-delimited list of property names.public RdfParserBuilder bpx(Map<String,String> values)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean classes.
bpx
in class ReaderParserBuilder
values
- The new value for this property.public RdfParserBuilder bpx(String beanClassName, String value)
BeanContextBuilder
bpx
in class ReaderParserBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfParserBuilder bpro(Class<?> beanClass, String value)
BeanContextBuilder
Specifies the read-only properties for the specified bean class.
bpro
in class ReaderParserBuilder
beanClass
- The bean class.value
- Comma-delimited list of property names.public RdfParserBuilder bpro(Map<String,String> values)
BeanContextBuilder
Specifies the read-only properties for the specified bean classes.
bpro
in class ReaderParserBuilder
values
- The new value for this property.public RdfParserBuilder bpro(String beanClassName, String value)
BeanContextBuilder
Specifies the read-only properties for the specified bean class.
bpro
in class ReaderParserBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfParserBuilder bpwo(Class<?> beanClass, String properties)
BeanContextBuilder
Specifies the write-only properties for the specified bean class.
bpwo
in class ReaderParserBuilder
beanClass
- The bean class.properties
- Comma-delimited list of property names.public RdfParserBuilder bpwo(Map<String,String> values)
BeanContextBuilder
Specifies the write-only properties for the specified bean classes.
bpwo
in class ReaderParserBuilder
values
- The new value for this property.public RdfParserBuilder bpwo(String beanClassName, String value)
BeanContextBuilder
Specifies the write-only properties for the specified bean class.
bpwo
in class ReaderParserBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfParserBuilder debug()
BeanContextBuilder
Shortcut for calling debug(
.
debug
in class ReaderParserBuilder
public RdfParserBuilder dictionary(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...)
but takes in an array of classes.
dictionary
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder dictionary(Object... values)
BeanContextBuilder
Adds to the list of classes that make up the bean dictionary in this bean context.
dictionary
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder dictionaryReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
dictionaryReplace
in class ReaderParserBuilder
values
- The new values for this property.public RdfParserBuilder dictionaryReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
dictionaryReplace
in class ReaderParserBuilder
values
- The new values for this property.public RdfParserBuilder dictionaryRemove(Class<?>... values)
BeanContextBuilder
Removes from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove
in class ReaderParserBuilder
values
- The values to remove from this property.public RdfParserBuilder dictionaryRemove(Object... values)
BeanContextBuilder
Removes from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove
in class ReaderParserBuilder
values
- The values to remove from this property.public <T> RdfParserBuilder example(Class<T> c, T o)
BeanContextBuilder
Specifies an example of the specified class.
example
in class ReaderParserBuilder
c
- The POJO class.o
- An instance of the POJO class used for examples.public <T> RdfParserBuilder exampleJson(Class<T> c, String value)
BeanContextBuilder
Specifies an example of the specified class.
exampleJson
in class ReaderParserBuilder
T
- The POJO class type.c
- The POJO class.value
- The simple JSON representation of the example.public RdfParserBuilder ignoreInvocationExceptionsOnGetters(boolean value)
BeanContextBuilder
If BeanRuntimeException
is thrown.
ignoreInvocationExceptionsOnGetters
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder ignoreInvocationExceptionsOnGetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnGetters(
.
ignoreInvocationExceptionsOnGetters
in class ReaderParserBuilder
public RdfParserBuilder ignoreInvocationExceptionsOnSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignoreInvocationExceptionsOnSetters
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder ignoreInvocationExceptionsOnSetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnSetters(
.
ignoreInvocationExceptionsOnSetters
in class ReaderParserBuilder
public RdfParserBuilder ignorePropertiesWithoutSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignorePropertiesWithoutSetters
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder ignoreUnknownBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignoreUnknownBeanProperties
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder ignoreUnknownBeanProperties()
BeanContextBuilder
Shortcut for calling ignoreUnknownBeanProperties(
.
ignoreUnknownBeanProperties
in class ReaderParserBuilder
public RdfParserBuilder ignoreUnknownNullBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignoreUnknownNullBeanProperties
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder implClass(Class<?> interfaceClass, Class<?> implClass)
BeanContextBuilder
implClass
in class ReaderParserBuilder
interfaceClass
- The interface class.implClass
- The implementation class.public RdfParserBuilder implClasses(Map<String,Class<?>> values)
BeanContextBuilder
For interfaces and abstract classes this method can be used to specify an implementation class for the interface/abstract class so that instances of the implementation class are used when instantiated (e.g. during a parse).
implClasses
in class ReaderParserBuilder
values
- The new value for this property.public RdfParserBuilder locale(Locale value)
BeanContextBuilder
Specifies a default locale for serializer and parser sessions.
locale
in class ReaderParserBuilder
value
- The new value for this property.public RdfParserBuilder mediaType(MediaType value)
BeanContextBuilder
Specifies a default media type value for serializer and parser sessions.
mediaType
in class ReaderParserBuilder
value
- The new value for this property.public RdfParserBuilder notBeanClasses(Class<?>... values)
BeanContextBuilder
List of classes that should not be treated as beans even if they appear to be bean-like.
Not-bean classes are converted to
notBeanClasses
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder notBeanClasses(Object... values)
BeanContextBuilder
List of classes that should not be treated as beans even if they appear to be bean-like.
Not-bean classes are converted to
notBeanClasses
in class ReaderParserBuilder
values
- The values to add to this property.
public RdfParserBuilder notBeanClassesReplace(Class<?>... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace
in class ReaderParserBuilder
values
- The new value for this property.public RdfParserBuilder notBeanClassesReplace(Object... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace
in class ReaderParserBuilder
values
- The new value for this property.
public RdfParserBuilder notBeanClassesRemove(Class<?>... values)
BeanContextBuilder
notBeanClassesRemove
in class ReaderParserBuilder
values
- The values to remove from this property.public RdfParserBuilder notBeanClassesRemove(Object... values)
BeanContextBuilder
notBeanClassesRemove
in class ReaderParserBuilder
values
- The values to remove from this property.
public RdfParserBuilder notBeanPackages(Object... values)
BeanContextBuilder
notBeanPackages
in class ReaderParserBuilder
values
- The values to add to this property.
public RdfParserBuilder notBeanPackages(String... values)
BeanContextBuilder
notBeanPackages
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder notBeanPackagesReplace(String... values)
BeanContextBuilder
notBeanPackagesReplace
in class ReaderParserBuilder
values
- public RdfParserBuilder notBeanPackagesReplace(Object... values)
BeanContextBuilder
notBeanPackagesReplace
in class ReaderParserBuilder
values
- public RdfParserBuilder notBeanPackagesRemove(String... values)
BeanContextBuilder
notBeanPackagesRemove
in class ReaderParserBuilder
values
- The values to remove from this property.public RdfParserBuilder notBeanPackagesRemove(Object... values)
BeanContextBuilder
notBeanPackagesRemove
in class ReaderParserBuilder
values
- public RdfParserBuilder pojoSwaps(Class<?>... values)
BeanContextBuilder
pojoSwaps
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder pojoSwaps(Object... values)
BeanContextBuilder
pojoSwaps
in class ReaderParserBuilder
values
- The values to add to this property.
PojoSwap
.
SurrogateSwap
.
public RdfParserBuilder pojoSwapsReplace(Class<?>... values)
BeanContextBuilder
pojoSwapsReplace
in class ReaderParserBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfParserBuilder pojoSwapsReplace(Object... values)
BeanContextBuilder
pojoSwapsReplace
in class ReaderParserBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfParserBuilder pojoSwapsRemove(Class<?>... values)
BeanContextBuilder
pojoSwapsRemove
in class ReaderParserBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfParserBuilder pojoSwapsRemove(Object... values)
BeanContextBuilder
pojoSwapsRemove
in class ReaderParserBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfParserBuilder sortProperties(boolean value)
BeanContextBuilder
When
sortProperties
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder sortProperties()
BeanContextBuilder
Shortcut for calling sortProperties(
.
sortProperties
in class ReaderParserBuilder
public RdfParserBuilder timeZone(TimeZone value)
BeanContextBuilder
timeZone
in class ReaderParserBuilder
value
- The new value for this property.public RdfParserBuilder useEnumNames(boolean value)
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString()
.
useEnumNames
in class ReaderParserBuilder
value
- The property value.public RdfParserBuilder useEnumNames()
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString()
.
useEnumNames
in class ReaderParserBuilder
public RdfParserBuilder useInterfaceProxies(boolean value)
BeanContextBuilder
If InvocationHandler
if there is no other way of instantiating them.
useInterfaceProxies
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder useJavaBeanIntrospector(boolean value)
BeanContextBuilder
Using the built-in Java bean introspector will not pick up fields or non-standard getters/setters.
@Bean
annotations will be ignored if you enable this setting.
useJavaBeanIntrospector
in class ReaderParserBuilder
value
- The new value for this property.
public RdfParserBuilder useJavaBeanIntrospector()
BeanContextBuilder
Shortcut for calling useJavaBeanIntrospector(
.
useJavaBeanIntrospector
in class ReaderParserBuilder
public RdfParserBuilder annotations(Annotation... values)
BeanContextBuilder
Defines annotations to apply to specific classes and methods.
Allows you to dynamically apply Juneau annotations typically applied directly to classes and methods. Useful in cases where you want to use the functionality of the annotation on beans and bean properties but do not have access to the code to do so.
annotations
in class ReaderParserBuilder
values
- The values to add to this property.public RdfParserBuilder set(String name, Object value)
ContextBuilder
set
in class ReaderParserBuilder
name
- The property name.value
- The property value.PropertyStoreBuilder.set(String, Object)
public RdfParserBuilder set(Map<String,Object> properties)
ContextBuilder
set
in class ReaderParserBuilder
properties
- The properties to set on this class.PropertyStoreBuilder.set(java.util.Map)
public RdfParserBuilder add(Map<String,Object> properties)
ContextBuilder
add
in class ReaderParserBuilder
properties
- The properties to set on this class.PropertyStoreBuilder.add(java.util.Map)
public RdfParserBuilder addTo(String name, Object value)
ContextBuilder
addTo
in class ReaderParserBuilder
name
- The property name.value
- The new value to add to the SET property.public RdfParserBuilder addTo(String name, String key, Object value)
ContextBuilder
addTo
in class ReaderParserBuilder
name
- The property name.key
- The property value map key.value
- The property value map value.public RdfParserBuilder removeFrom(String name, Object value)
ContextBuilder
removeFrom
in class ReaderParserBuilder
name
- The property name.value
- The property value in the SET property.public RdfParserBuilder apply(PropertyStore copyFrom)
ContextBuilder
apply
in class ReaderParserBuilder
copyFrom
- The factory whose settings are being copied.public RdfParserBuilder applyAnnotations(AnnotationList al, VarResolverSession vrs)
ContextBuilder
applyAnnotations
in class ReaderParserBuilder
al
- The list of all annotations annotated with PropertyStoreApply
.vrs
- The string resolver for resolving variables in annotation values.public RdfParserBuilder applyAnnotations(Class<?>... fromClasses)
ContextBuilder
Applies any of the following annotations:
BeanConfig
CsvConfig
HtmlConfig
HtmlDocConfig
JsoConfig
JsonConfig
JsonSchemaConfig
MsgPackConfig
OpenApiConfig
ParserConfig
PlainTextConfig
SerializerConfig
SoapXmlConfig
UonConfig
UrlEncodingConfig
XmlConfig
Annotations are appended in the following order:
applyAnnotations
in class ReaderParserBuilder
fromClasses
- The classes on which the annotations are defined.public RdfParserBuilder applyAnnotations(Method... fromMethods)
ContextBuilder
Applies any of the following annotations:
BeanConfig
CsvConfig
HtmlConfig
HtmlDocConfig
JsoConfig
JsonConfig
JsonSchemaConfig
MsgPackConfig
OpenApiConfig
ParserConfig
PlainTextConfig
SerializerConfig
SoapXmlConfig
UonConfig
UrlEncodingConfig
XmlConfig
Annotations are appended in the following orders:
applyAnnotations
in class ReaderParserBuilder
fromMethods
- The methods on which the annotations are defined.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.