public class RdfSerializerBuilder extends WriterSerializerBuilder
Type | Property and Description |
---|---|
RdfSerializerBuilder |
addRoot
Configuration property: Add RDF root identifier property to root node.
|
psb
Constructor and Description |
---|
RdfSerializerBuilder()
Constructor, default settings.
|
RdfSerializerBuilder(PropertyStore ps)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RdfSerializerBuilder |
add(Map<String,Object> properties)
Adds multiple configuration properties on this object.
|
RdfSerializerBuilder |
addBeanTypes()
Configuration property: Add
|
RdfSerializerBuilder |
addBeanTypes(boolean value)
Configuration property: Add
|
RdfSerializerBuilder |
addLiteralTypes()
Configuration property: Add XSI data types to non-
|
RdfSerializerBuilder |
addLiteralTypes(boolean value)
Configuration property: Add XSI data types to non-
|
RdfSerializerBuilder |
addRootProperty()
Configuration property: Add RDF root identifier property to root node.
|
RdfSerializerBuilder |
addRootProperty(boolean value)
Configuration property: Add RDF root identifier property to root node.
|
RdfSerializerBuilder |
addRootType()
Configuration property: Add type attribute to root nodes.
|
RdfSerializerBuilder |
addRootType(boolean value)
Configuration property: Add type attribute to root nodes.
|
RdfSerializerBuilder |
addTo(String name,
Object value)
Adds a value to a SET or LIST property.
|
RdfSerializerBuilder |
addTo(String name,
String key,
Object value)
Adds or overwrites a value to a SET, LIST, or MAP property.
|
RdfSerializerBuilder |
annotations(Annotation... values)
Configuration property: Annotations.
|
RdfSerializerBuilder |
apply(PropertyStore copyFrom)
Copies the settings from the specified property store into this builder.
|
RdfSerializerBuilder |
applyAnnotations(AnnotationList al,
VarResolverSession vrs)
Applies a set of annotations to this property store.
|
RdfSerializerBuilder |
applyAnnotations(Class<?>... fromClasses)
Applies any of the various
|
RdfSerializerBuilder |
applyAnnotations(Method... fromMethods)
Applies any of the various
|
RdfSerializerBuilder |
arp_embedding(boolean value)
Configuration property: RDF/XML ARP property:
|
RdfSerializerBuilder |
arp_errorMode(String value)
Configuration property: RDF/XML ARP property:
|
RdfSerializerBuilder |
arp_iriRules(String value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
autoDetectNamespaces(boolean value)
Configuration property: Auto-detect namespace usage.
|
RdfSerializerBuilder |
beanClassVisibility(Visibility value)
Configuration property: Minimum bean class visibility.
|
RdfSerializerBuilder |
beanConstructorVisibility(Visibility value)
Configuration property: Minimum bean constructor visibility.
|
RdfSerializerBuilder |
beanDictionary(Class<?>... values)
Deprecated.
|
RdfSerializerBuilder |
beanDictionary(Object... values)
Deprecated.
|
RdfSerializerBuilder |
beanDictionaryRemove(Class<?>... values)
Deprecated.
|
RdfSerializerBuilder |
beanDictionaryRemove(Object... values)
Deprecated.
|
RdfSerializerBuilder |
beanDictionaryReplace(Class<?>... values)
Deprecated.
|
RdfSerializerBuilder |
beanDictionaryReplace(Object... values)
Deprecated.
|
RdfSerializerBuilder |
beanFieldVisibility(Visibility value)
Configuration property: Minimum bean field visibility.
|
RdfSerializerBuilder |
beanFilters(Class<?>... values)
Configuration property: Bean filters.
|
RdfSerializerBuilder |
beanFilters(Object... values)
Configuration property: Bean filters.
|
RdfSerializerBuilder |
beanFiltersRemove(Class<?>... values)
Configuration property: Bean filters.
|
RdfSerializerBuilder |
beanFiltersRemove(Object... values)
Configuration property: Bean filters.
|
RdfSerializerBuilder |
beanFiltersReplace(Class<?>... values)
Configuration property: Bean filters.
|
RdfSerializerBuilder |
beanFiltersReplace(Object... values)
Configuration property: Bean filters.
|
RdfSerializerBuilder |
beanMapPutReturnsOldValue()
Configuration property: BeanMap.put() returns old property value.
|
RdfSerializerBuilder |
beanMapPutReturnsOldValue(boolean value)
Configuration property: BeanMap.put() returns old property value.
|
RdfSerializerBuilder |
beanMethodVisibility(Visibility value)
Configuration property: Minimum bean method visibility.
|
RdfSerializerBuilder |
beansRequireDefaultConstructor()
Configuration property: Beans require no-arg constructors.
|
RdfSerializerBuilder |
beansRequireDefaultConstructor(boolean value)
Configuration property: Beans require no-arg constructors.
|
RdfSerializerBuilder |
beansRequireSerializable()
Configuration property: Beans require Serializable interface.
|
RdfSerializerBuilder |
beansRequireSerializable(boolean value)
Configuration property: Beans require Serializable interface.
|
RdfSerializerBuilder |
beansRequireSettersForGetters()
Configuration property: Beans require setters for getters.
|
RdfSerializerBuilder |
beansRequireSettersForGetters(boolean value)
Configuration property: Beans require setters for getters.
|
RdfSerializerBuilder |
beansRequireSomeProperties(boolean value)
Configuration property: Beans require at least one property.
|
RdfSerializerBuilder |
beanTypePropertyName(String value)
Configuration property: Bean type property name.
|
RdfSerializerBuilder |
bpi(Class<?> beanClass,
String value)
Configuration property: Bean property includes.
|
RdfSerializerBuilder |
bpi(Map<String,String> values)
Configuration property: Bean property includes.
|
RdfSerializerBuilder |
bpi(String beanClassName,
String value)
Configuration property: Bean property includes.
|
RdfSerializerBuilder |
bpro(Class<?> beanClass,
String value)
Configuration property: Read-only bean properties.
|
RdfSerializerBuilder |
bpro(Map<String,String> values)
Configuration property: Read-only bean properties.
|
RdfSerializerBuilder |
bpro(String beanClassName,
String value)
Configuration property: Read-only bean properties.
|
RdfSerializerBuilder |
bpwo(Class<?> beanClass,
String properties)
Configuration property: Write-only bean properties.
|
RdfSerializerBuilder |
bpwo(Map<String,String> values)
Configuration property: Write-only bean properties.
|
RdfSerializerBuilder |
bpwo(String beanClassName,
String value)
Configuration property: Write-only bean properties.
|
RdfSerializerBuilder |
bpx(Class<?> beanClass,
String properties)
Configuration property: Bean property excludes.
|
RdfSerializerBuilder |
bpx(Map<String,String> values)
Configuration property: Bean property excludes.
|
RdfSerializerBuilder |
bpx(String beanClassName,
String value)
Configuration property: Bean property excludes.
|
RdfSerializer |
build()
Build the object.
|
RdfSerializerBuilder |
collectionFormat(RdfCollectionFormat value)
Configuration property: RDF format for representing collections and arrays.
|
RdfSerializerBuilder |
collectionFormat(String value)
Configuration property: RDF format for representing collections and arrays.
|
RdfSerializerBuilder |
debug()
Configuration property: Debug mode.
|
RdfSerializerBuilder |
detectRecursions()
Configuration property: Automatically detect POJO recursions.
|
RdfSerializerBuilder |
detectRecursions(boolean value)
Configuration property: Automatically detect POJO recursions.
|
RdfSerializerBuilder |
dictionary(Class<?>... values)
Configuration property: Bean dictionary.
|
RdfSerializerBuilder |
dictionary(Object... values)
Configuration property: Bean dictionary.
|
RdfSerializerBuilder |
dictionaryRemove(Class<?>... values)
Configuration property: Bean dictionary.
|
RdfSerializerBuilder |
dictionaryRemove(Object... values)
Configuration property: Bean dictionary.
|
RdfSerializerBuilder |
dictionaryReplace(Class<?>... values)
Configuration property: Bean dictionary.
|
RdfSerializerBuilder |
dictionaryReplace(Object... values)
Configuration property: Bean dictionary.
|
<T> RdfSerializerBuilder |
example(Class<T> c,
T o)
Configuration property: POJO example.
|
<T> RdfSerializerBuilder |
exampleJson(Class<T> c,
String value)
Configuration property: POJO example.
|
RdfSerializerBuilder |
fileCharset(Charset value)
Configuration property: File charset.
|
RdfSerializerBuilder |
ignoreInvocationExceptionsOnGetters()
Configuration property: Ignore invocation errors on getters.
|
RdfSerializerBuilder |
ignoreInvocationExceptionsOnGetters(boolean value)
Configuration property: Ignore invocation errors on getters.
|
RdfSerializerBuilder |
ignoreInvocationExceptionsOnSetters()
Configuration property: Ignore invocation errors on setters.
|
RdfSerializerBuilder |
ignoreInvocationExceptionsOnSetters(boolean value)
Configuration property: Ignore invocation errors on setters.
|
RdfSerializerBuilder |
ignorePropertiesWithoutSetters(boolean value)
Configuration property: Ignore properties without setters.
|
RdfSerializerBuilder |
ignoreRecursions()
Configuration property: Ignore recursion errors.
|
RdfSerializerBuilder |
ignoreRecursions(boolean value)
Configuration property: Ignore recursion errors.
|
RdfSerializerBuilder |
ignoreUnknownBeanProperties()
Configuration property: Ignore unknown properties.
|
RdfSerializerBuilder |
ignoreUnknownBeanProperties(boolean value)
Configuration property: Ignore unknown properties.
|
RdfSerializerBuilder |
ignoreUnknownNullBeanProperties(boolean value)
Configuration property: Ignore unknown properties with null values.
|
RdfSerializerBuilder |
implClass(Class<?> interfaceClass,
Class<?> implClass)
Configuration property: Implementation classes.
|
RdfSerializerBuilder |
implClasses(Map<String,Class<?>> values)
Configuration property: Implementation classes.
|
RdfSerializerBuilder |
initialDepth(int value)
Configuration property: Initial depth.
|
RdfSerializerBuilder |
juneauBpNs(Namespace value)
Configuration property: Default XML namespace for bean properties.
|
RdfSerializerBuilder |
juneauBpNs(String value)
Configuration property: Default XML namespace for bean properties.
|
RdfSerializerBuilder |
juneauNs(Namespace value)
Configuration property: XML namespace for Juneau properties.
|
RdfSerializerBuilder |
juneauNs(String value)
Configuration property: XML namespace for Juneau properties.
|
RdfSerializerBuilder |
language(String value)
Configuration property: RDF language.
|
RdfSerializerBuilder |
listener(Class<? extends SerializerListener> value)
Configuration property: Serializer listener.
|
RdfSerializerBuilder |
locale(Locale value)
Configuration property: Locale.
|
RdfSerializerBuilder |
looseCollections()
Configuration property: Collections should be serialized and parsed as loose collections.
|
RdfSerializerBuilder |
looseCollections(boolean value)
Configuration property: Collections should be serialized and parsed as loose collections.
|
RdfSerializerBuilder |
maxDepth(int value)
Configuration property: Max traversal depth.
|
RdfSerializerBuilder |
maxIndent(int value)
Configuration property: Maximum indentation.
|
RdfSerializerBuilder |
mediaType(MediaType value)
Configuration property: Media type.
|
RdfSerializerBuilder |
n3_abbrevBaseUri(boolean value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_indentProperty(int value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_minGap(int value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_objectLists(boolean value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_propertyColumn(int value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_subjectColumn(int value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_useDoubles(boolean value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_usePropertySymbols(boolean value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_useTripleQuotedStrings(boolean value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3_widePropertyLen(int value)
Configuration property: N3/Turtle property:
|
RdfSerializerBuilder |
n3()
Configuration property: RDF language.
|
RdfSerializerBuilder |
namespaces(Namespace... values)
Configuration property: Default namespaces.
|
RdfSerializerBuilder |
namespaces(String[] value)
Configuration property: Default namespaces.
|
RdfSerializerBuilder |
notBeanClasses(Class<?>... values)
Configuration property: Bean class exclusions.
|
RdfSerializerBuilder |
notBeanClasses(Object... values)
Configuration property: Bean class exclusions.
|
RdfSerializerBuilder |
notBeanClassesRemove(Class<?>... values)
Configuration property: Bean class exclusions.
|
RdfSerializerBuilder |
notBeanClassesRemove(Object... values)
Configuration property: Bean class exclusions.
|
RdfSerializerBuilder |
notBeanClassesReplace(Class<?>... values)
Configuration property: Bean class exclusions.
|
RdfSerializerBuilder |
notBeanClassesReplace(Object... values)
Configuration property: Bean class exclusions.
|
RdfSerializerBuilder |
notBeanPackages(Object... values)
Configuration property: Bean package exclusions.
|
RdfSerializerBuilder |
notBeanPackages(String... values)
Configuration property: Bean package exclusions.
|
RdfSerializerBuilder |
notBeanPackagesRemove(Object... values)
Configuration property: Bean package exclusions.
|
RdfSerializerBuilder |
notBeanPackagesRemove(String... values)
Configuration property: Bean package exclusions.
|
RdfSerializerBuilder |
notBeanPackagesReplace(Object... values)
Configuration property: Bean package exclusions.
|
RdfSerializerBuilder |
notBeanPackagesReplace(String... values)
Configuration property: Bean package exclusions.
|
RdfSerializerBuilder |
ntriple()
Configuration property: RDF language.
|
RdfSerializerBuilder |
pojoSwaps(Class<?>... values)
Configuration property: POJO swaps.
|
RdfSerializerBuilder |
pojoSwaps(Object... values)
Configuration property: POJO swaps.
|
RdfSerializerBuilder |
pojoSwapsRemove(Class<?>... values)
Configuration property: POJO swaps.
|
RdfSerializerBuilder |
pojoSwapsRemove(Object... values)
Configuration property: POJO swaps.
|
RdfSerializerBuilder |
pojoSwapsReplace(Class<?>... values)
Configuration property: POJO swaps.
|
RdfSerializerBuilder |
pojoSwapsReplace(Object... values)
Configuration property: POJO swaps.
|
RdfSerializerBuilder |
quoteChar(char value)
Configuration property: Quote character.
|
RdfSerializerBuilder |
rdfxml_allowBadUris(boolean value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_attributeQuoteChar(String value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_blockRules(String value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_longId(boolean value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_relativeUris(String value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_showDoctypeDeclaration(boolean value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_showXmlDeclaration(String value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_tab(int value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
rdfxml_xmlBase(String value)
Configuration property: RDF/XML property:
|
RdfSerializerBuilder |
removeFrom(String name,
Object value)
Removes a value from a SET, LIST, or MAP property.
|
RdfSerializerBuilder |
set(Map<String,Object> properties)
Sets multiple configuration properties on this object.
|
RdfSerializerBuilder |
set(String name,
Object value)
Sets a configuration property on this object.
|
RdfSerializerBuilder |
sortCollections()
Configuration property: Sort arrays and collections alphabetically.
|
RdfSerializerBuilder |
sortCollections(boolean value)
Configuration property: Sort arrays and collections alphabetically.
|
RdfSerializerBuilder |
sortMaps()
Configuration property: Sort maps alphabetically.
|
RdfSerializerBuilder |
sortMaps(boolean value)
Configuration property: Sort maps alphabetically.
|
RdfSerializerBuilder |
sortProperties()
Configuration property: Sort bean properties.
|
RdfSerializerBuilder |
sortProperties(boolean value)
Configuration property: Sort bean properties.
|
RdfSerializerBuilder |
sq()
Configuration property: Quote character.
|
RdfSerializerBuilder |
streamCharset(Charset value)
Configuration property: Output stream charset.
|
RdfSerializerBuilder |
timeZone(TimeZone value)
Configuration property: TimeZone.
|
RdfSerializerBuilder |
trimEmptyCollections()
Configuration property: Trim empty lists and arrays.
|
RdfSerializerBuilder |
trimEmptyCollections(boolean value)
Configuration property: Trim empty lists and arrays.
|
RdfSerializerBuilder |
trimEmptyMaps()
Configuration property: Trim empty maps.
|
RdfSerializerBuilder |
trimEmptyMaps(boolean value)
Configuration property: Trim empty maps.
|
RdfSerializerBuilder |
trimNullProperties(boolean value)
Configuration property: Trim null bean property values.
|
RdfSerializerBuilder |
trimStrings()
Configuration property: Trim strings.
|
RdfSerializerBuilder |
trimStrings(boolean value)
Configuration property: Trim strings.
|
RdfSerializerBuilder |
turtle()
Configuration property: RDF language.
|
RdfSerializerBuilder |
uriContext(UriContext value)
Configuration property: URI context bean.
|
RdfSerializerBuilder |
uriRelativity(UriRelativity value)
Configuration property: URI relativity.
|
RdfSerializerBuilder |
uriResolution(UriResolution value)
Configuration property: URI resolution.
|
RdfSerializerBuilder |
useEnumNames()
Configuration property: Use enum names.
|
RdfSerializerBuilder |
useEnumNames(boolean value)
Configuration property: Use enum names.
|
RdfSerializerBuilder |
useInterfaceProxies(boolean value)
Configuration property: Use interface proxies.
|
RdfSerializerBuilder |
useJavaBeanIntrospector()
Configuration property: Use Java Introspector.
|
RdfSerializerBuilder |
useJavaBeanIntrospector(boolean value)
Configuration property: Use Java Introspector.
|
RdfSerializerBuilder |
useWhitespace()
Configuration property: Use whitespace.
|
RdfSerializerBuilder |
useWhitespace(boolean value)
Configuration property: Use whitespace.
|
RdfSerializerBuilder |
useXmlNamespaces(boolean value)
Configuration property: Reuse XML namespaces when RDF namespaces not specified.
|
RdfSerializerBuilder |
ws()
Configuration property: Use whitespace.
|
RdfSerializerBuilder |
xml()
Configuration property: RDF language.
|
RdfSerializerBuilder |
xmlabbrev()
Configuration property: RDF language.
|
uriContext, uriRelativity, uriResolution
debug, examples, excludeProperties, excludeProperties, excludeProperties, fluentSetters, fluentSetters, includeProperties, includeProperties, includeProperties, propertyNamer
build, getPropertyStore, getPropertyStoreBuilder, peek, peek
public RdfSerializerBuilder addRootProperty
Shortcut for calling addRootProperty(
.
public RdfSerializerBuilder()
public RdfSerializerBuilder(PropertyStore ps)
ps
- The initial configuration settings for this builder.public RdfSerializer build()
ContextBuilder
build
in class WriterSerializerBuilder
public RdfSerializerBuilder juneauNs(String value)
value
- The new value for this property.public RdfSerializerBuilder juneauBpNs(String value)
value
- The new value for this property.public RdfSerializerBuilder arp_iriRules(String value)
Set the engine for checking and resolving.
Possible values:
value
- The new value for this property.public RdfSerializerBuilder 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 RdfSerializerBuilder arp_embedding(boolean value)
Sets ARP to look for RDF embedded within an enclosing XML document.
value
- The new value for this property.public RdfSerializerBuilder rdfxml_xmlBase(String value)
The value to be included for an
value
- The new value for this property.public RdfSerializerBuilder 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 RdfSerializerBuilder rdfxml_allowBadUris(boolean value)
URIs in the graph are, by default, checked prior to serialization.
value
- The new value for this property.public RdfSerializerBuilder 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 RdfSerializerBuilder rdfxml_showXmlDeclaration(String value)
Possible values:
value
- The new value for this property.public RdfSerializerBuilder 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 RdfSerializerBuilder rdfxml_tab(int value)
The number of spaces with which to indent XML child elements.
value
- The new value for this property.public RdfSerializerBuilder rdfxml_attributeQuoteChar(String value)
The XML attribute quote character.
value
- The new value for this property.public RdfSerializerBuilder rdfxml_blockRules(String value)
A list of
value
- The new value for this property.public RdfSerializerBuilder n3_minGap(int value)
Minimum gap between items on a line.
value
- The new value for this property.public RdfSerializerBuilder n3_objectLists(boolean value)
Print object lists as comma separated lists.
value
- The new value for this property.public RdfSerializerBuilder 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 RdfSerializerBuilder n3_propertyColumn(int value)
Width of the property column.
value
- The new value for this property.public RdfSerializerBuilder n3_indentProperty(int value)
Width to indent properties.
value
- The new value for this property.public RdfSerializerBuilder n3_widePropertyLen(int value)
Width of the property column.
Must be longer than
value
- The new value for this property.public RdfSerializerBuilder n3_abbrevBaseUri(boolean value)
Control whether to use abbreviations
value
- The new value for this property.public RdfSerializerBuilder n3_usePropertySymbols(boolean value)
Control whether to use
value
- The new value for this property.public RdfSerializerBuilder n3_useTripleQuotedStrings(boolean value)
Allow the use of
value
- The new value for this property.public RdfSerializerBuilder n3_useDoubles(boolean value)
Allow the use doubles as
value
- The new value for this property.public RdfSerializerBuilder collectionFormat(String value)
Possible values:
value
- The new value for this property.public RdfSerializerBuilder namespaces(String[] value)
The default list of namespaces associated with this serializer.
value
- The new value for this property.public RdfSerializerBuilder addLiteralTypes(boolean value)
value
- The new value for this property.
public RdfSerializerBuilder addLiteralTypes()
Shortcut for calling addLiteralTypes(
.
public RdfSerializerBuilder addRootProperty(boolean value)
When enabled an RDF property
If disabled, the parser has to search through the model to find any resources without incoming predicates to identify root notes, which can introduce a considerable performance degradation.
value
- The new value for this property.
public RdfSerializerBuilder addRootProperty()
Shortcut for calling addRootProperty(
.
public RdfSerializerBuilder autoDetectNamespaces(boolean value)
Detect namespace usage before serialization.
value
- The new value for this property.
public RdfSerializerBuilder collectionFormat(RdfCollectionFormat value)
value
- The new value for this property.
public RdfSerializerBuilder juneauBpNs(Namespace value)
value
- The new value for this property.
{j:'http://www.apache.org/juneaubp/' }
.public RdfSerializerBuilder juneauNs(Namespace value)
value
- The new value for this property.
{j:'http://www.apache.org/juneau/' }
.public RdfSerializerBuilder language(String value)
Can be any of the following:
value
- The new value for this property.public RdfSerializerBuilder 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 RdfSerializerBuilder looseCollections()
Shortcut for looseCollections(
.
public RdfSerializerBuilder n3()
Shortcut for calling language(
public RdfSerializerBuilder namespaces(Namespace... values)
The default list of namespaces associated with this serializer.
values
- The new value for this property.public RdfSerializerBuilder ntriple()
Shortcut for calling language(
public RdfSerializerBuilder turtle()
Shortcut for calling language(
public RdfSerializerBuilder useXmlNamespaces(boolean value)
When specified, namespaces defined using @XmlNs
and Xml
will be
inherited by the RDF serializers.
Otherwise, namespaces will be defined using @RdfNs
and @Rdf
.
value
- The new value for this property.
public RdfSerializerBuilder xml()
Shortcut for calling language(
public RdfSerializerBuilder xmlabbrev()
Shortcut for calling language(
public RdfSerializerBuilder fileCharset(Charset value)
WriterSerializerBuilder
The character set to use for writing Files to the file system.
Used when passing in files to Serializer.serialize(Object, Object)
.
fileCharset
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder maxIndent(int value)
WriterSerializerBuilder
Specifies the maximum indentation level in the serialized document.
maxIndent
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder quoteChar(char value)
WriterSerializerBuilder
This is the character used for quoting attributes and values.
quoteChar
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder sq()
WriterSerializerBuilder
Shortcut for calling quoteChar(
.
sq
in class WriterSerializerBuilder
public RdfSerializerBuilder streamCharset(Charset value)
WriterSerializerBuilder
The character set to use when writing to OutputStreams.
Used when passing in output streams and byte arrays to Serializer.serialize(Object, Object)
.
streamCharset
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder useWhitespace(boolean value)
WriterSerializerBuilder
If
useWhitespace
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder useWhitespace()
WriterSerializerBuilder
Shortcut for calling useWhitespace(
.
useWhitespace
in class WriterSerializerBuilder
public RdfSerializerBuilder ws()
WriterSerializerBuilder
Shortcut for calling useWhitespace(
.
ws
in class WriterSerializerBuilder
public RdfSerializerBuilder addBeanTypes(boolean value)
SerializerBuilder
If
addBeanTypes
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder addBeanTypes()
SerializerBuilder
Shortcut for calling addBeanTypes(
.
addBeanTypes
in class SerializerBuilder
public RdfSerializerBuilder addRootType(boolean value)
SerializerBuilder
When disabled, it is assumed that the parser knows the exact Java POJO type being parsed, and therefore top-level type information that might normally be included to determine the data type will not be serialized.
addRootType
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder addRootType()
SerializerBuilder
Shortcut for calling addRootType(
.
addRootType
in class SerializerBuilder
public RdfSerializerBuilder detectRecursions(boolean value)
BeanTraverseBuilder
Specifies that recursions should be checked for during traversal.
detectRecursions
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder detectRecursions()
BeanTraverseBuilder
Shortcut for calling detectRecursions(
.
detectRecursions
in class SerializerBuilder
public RdfSerializerBuilder ignoreRecursions(boolean value)
BeanTraverseBuilder
If
ignoreRecursions
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder ignoreRecursions()
BeanTraverseBuilder
Shortcut for calling ignoreRecursions(
.
ignoreRecursions
in class SerializerBuilder
public RdfSerializerBuilder initialDepth(int value)
BeanTraverseBuilder
The initial indentation level at the root.
initialDepth
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder listener(Class<? extends SerializerListener> value)
SerializerBuilder
Class used to listen for errors and warnings that occur during serialization.
listener
in class SerializerBuilder
value
- The new value for this property.public RdfSerializerBuilder maxDepth(int value)
BeanTraverseBuilder
Abort traversal if specified depth is reached in the POJO tree.
If this depth is exceeded, an exception is thrown.
This prevents stack overflows from occurring when trying to traverse models with recursive references.
maxDepth
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder sortCollections(boolean value)
SerializerBuilder
Copies and sorts the contents of arrays and collections before serializing them.
sortCollections
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder sortCollections()
SerializerBuilder
Shortcut for calling sortCollections(
.
sortCollections
in class SerializerBuilder
public RdfSerializerBuilder sortMaps(boolean value)
SerializerBuilder
Copies and sorts the contents of maps before serializing them.
sortMaps
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder sortMaps()
SerializerBuilder
Shortcut for calling sortMaps(
.
sortMaps
in class SerializerBuilder
public RdfSerializerBuilder trimEmptyCollections(boolean value)
SerializerBuilder
If
trimEmptyCollections
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder trimEmptyCollections()
SerializerBuilder
Shortcut for calling trimEmptyCollections(
.
trimEmptyCollections
in class SerializerBuilder
public RdfSerializerBuilder trimEmptyMaps(boolean value)
SerializerBuilder
If
trimEmptyMaps
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder trimEmptyMaps()
SerializerBuilder
Shortcut for calling trimEmptyMaps(
.
trimEmptyMaps
in class SerializerBuilder
public RdfSerializerBuilder trimNullProperties(boolean value)
SerializerBuilder
If
trimNullProperties
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder trimStrings(boolean value)
SerializerBuilder
If String.trim()
before being serialized.
trimStrings
in class SerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder trimStrings()
SerializerBuilder
Shortcut for calling trimStrings(
.
trimStrings
in class SerializerBuilder
public RdfSerializerBuilder uriContext(UriContext value)
SerializerBuilder
Bean used for resolution of URIs to absolute or root-relative form.
uriContext
in class SerializerBuilder
value
- The new value for this property.public RdfSerializerBuilder uriRelativity(UriRelativity value)
SerializerBuilder
Defines what relative URIs are relative to when serializing URI/URL objects.
uriRelativity
in class SerializerBuilder
value
- The new value for this property.
UriRelativity.RESOURCE
public RdfSerializerBuilder uriResolution(UriResolution value)
SerializerBuilder
Defines the resolution level for URIs when serializing URI/URL objects.
uriResolution
in class SerializerBuilder
value
- The new value for this property.
UriResolution.NONE
public RdfSerializerBuilder 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 WriterSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
.public RdfSerializerBuilder beanConstructorVisibility(Visibility value)
BeanContextBuilder
Only look for constructors with the specified minimum visibility.
beanConstructorVisibility
in class WriterSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
.@Deprecated public RdfSerializerBuilder beanDictionary(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionary(Class...)
Same as BeanContextBuilder.beanDictionary(Object...)
but takes in an array of classes.
beanDictionary
in class WriterSerializerBuilder
values
- The values to add to this property.@Deprecated public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The values to add to this property.@Deprecated public RdfSerializerBuilder beanDictionaryReplace(Class<?>... values)
BeanContextBuilder
BeanContextBuilder.dictionaryReplace(Class...)
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
beanDictionaryReplace
in class WriterSerializerBuilder
values
- The new values for this property.@Deprecated public RdfSerializerBuilder beanDictionaryReplace(Object... values)
BeanContextBuilder
BeanContextBuilder.dictionaryReplace(Object...)
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
beanDictionaryReplace
in class WriterSerializerBuilder
values
- The new values for this property.@Deprecated public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The values to remove from this property.@Deprecated public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The values to remove from this property.public RdfSerializerBuilder beanFieldVisibility(Visibility value)
BeanContextBuilder
Only look for bean fields with the specified minimum visibility.
beanFieldVisibility
in class WriterSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
.public RdfSerializerBuilder beanFilters(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...)
but takes in an array of classes.
beanFilters
in class WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder 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 WriterSerializerBuilder
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 RdfSerializerBuilder beanFiltersReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...)
but replaces the existing values.
beanFiltersReplace
in class WriterSerializerBuilder
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 RdfSerializerBuilder beanFiltersReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanFilters(Object...)
but replaces the existing values.
beanFiltersReplace
in class WriterSerializerBuilder
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 RdfSerializerBuilder beanFiltersRemove(Class<?>... values)
BeanContextBuilder
Removes from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove
in class WriterSerializerBuilder
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 RdfSerializerBuilder beanFiltersRemove(Object... values)
BeanContextBuilder
Removes from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove
in class WriterSerializerBuilder
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 RdfSerializerBuilder beanMapPutReturnsOldValue(boolean value)
BeanContextBuilder
If BeanMap.put()
method will return old property
values.
Otherwise, it returns
beanMapPutReturnsOldValue
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder beanMapPutReturnsOldValue()
BeanContextBuilder
Shortcut for calling beanMapPutReturnsOldValue(
.
beanMapPutReturnsOldValue
in class WriterSerializerBuilder
public RdfSerializerBuilder beanMethodVisibility(Visibility value)
BeanContextBuilder
Only look for bean methods with the specified minimum visibility.
beanMethodVisibility
in class WriterSerializerBuilder
value
- The new value for this property.
Visibility.PUBLIC
public RdfSerializerBuilder beansRequireDefaultConstructor(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
beansRequireDefaultConstructor
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder beansRequireDefaultConstructor()
BeanContextBuilder
Shortcut for calling beansRequireDefaultConstructor(
.
beansRequireDefaultConstructor
in class WriterSerializerBuilder
public RdfSerializerBuilder 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 WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder beansRequireSerializable()
BeanContextBuilder
Shortcut for calling beansRequireSerializable(
.
beansRequireSerializable
in class WriterSerializerBuilder
public RdfSerializerBuilder beansRequireSettersForGetters(boolean value)
BeanContextBuilder
If
Otherwise, they will be ignored.
beansRequireSettersForGetters
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder beansRequireSettersForGetters()
BeanContextBuilder
Shortcut for calling beansRequireSettersForGetters(
.
beansRequireSettersForGetters
in class WriterSerializerBuilder
public RdfSerializerBuilder beansRequireSomeProperties(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString()
method.
beansRequireSomeProperties
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder 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 WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder bpi(Class<?> beanClass, String value)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
bpi
in class WriterSerializerBuilder
beanClass
- The bean class.value
- Comma-delimited list of property names.public RdfSerializerBuilder bpi(Map<String,String> values)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
bpi
in class WriterSerializerBuilder
values
- The new value for this property.public RdfSerializerBuilder bpi(String beanClassName, String value)
BeanContextBuilder
Specifies the set and order of names of properties associated with the bean class.
bpi
in class WriterSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfSerializerBuilder bpx(Class<?> beanClass, String properties)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean class.
bpx
in class WriterSerializerBuilder
beanClass
- The bean class.properties
- Comma-delimited list of property names.public RdfSerializerBuilder bpx(Map<String,String> values)
BeanContextBuilder
Specifies to exclude the specified list of properties for the specified bean classes.
bpx
in class WriterSerializerBuilder
values
- The new value for this property.public RdfSerializerBuilder bpx(String beanClassName, String value)
BeanContextBuilder
bpx
in class WriterSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfSerializerBuilder bpro(Class<?> beanClass, String value)
BeanContextBuilder
Specifies the read-only properties for the specified bean class.
bpro
in class WriterSerializerBuilder
beanClass
- The bean class.value
- Comma-delimited list of property names.public RdfSerializerBuilder bpro(Map<String,String> values)
BeanContextBuilder
Specifies the read-only properties for the specified bean classes.
bpro
in class WriterSerializerBuilder
values
- The new value for this property.public RdfSerializerBuilder bpro(String beanClassName, String value)
BeanContextBuilder
Specifies the read-only properties for the specified bean class.
bpro
in class WriterSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfSerializerBuilder bpwo(Class<?> beanClass, String properties)
BeanContextBuilder
Specifies the write-only properties for the specified bean class.
bpwo
in class WriterSerializerBuilder
beanClass
- The bean class.properties
- Comma-delimited list of property names.public RdfSerializerBuilder bpwo(Map<String,String> values)
BeanContextBuilder
Specifies the write-only properties for the specified bean classes.
bpwo
in class WriterSerializerBuilder
values
- The new value for this property.public RdfSerializerBuilder bpwo(String beanClassName, String value)
BeanContextBuilder
Specifies the write-only properties for the specified bean class.
bpwo
in class WriterSerializerBuilder
beanClassName
- The bean class name.
value
- Comma-delimited list of property names.public RdfSerializerBuilder debug()
BeanContextBuilder
Shortcut for calling debug(
.
debug
in class WriterSerializerBuilder
public RdfSerializerBuilder dictionary(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...)
but takes in an array of classes.
dictionary
in class WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder dictionary(Object... values)
BeanContextBuilder
Adds to the list of classes that make up the bean dictionary in this bean context.
dictionary
in class WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder dictionaryReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
dictionaryReplace
in class WriterSerializerBuilder
values
- The new values for this property.public RdfSerializerBuilder dictionaryReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...)
but replaces the existing value.
dictionaryReplace
in class WriterSerializerBuilder
values
- The new values for this property.public RdfSerializerBuilder dictionaryRemove(Class<?>... values)
BeanContextBuilder
Removes from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.public RdfSerializerBuilder dictionaryRemove(Object... values)
BeanContextBuilder
Removes from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.public <T> RdfSerializerBuilder example(Class<T> c, T o)
BeanContextBuilder
Specifies an example of the specified class.
example
in class WriterSerializerBuilder
c
- The POJO class.o
- An instance of the POJO class used for examples.public <T> RdfSerializerBuilder exampleJson(Class<T> c, String value)
BeanContextBuilder
Specifies an example of the specified class.
exampleJson
in class WriterSerializerBuilder
T
- The POJO class type.c
- The POJO class.value
- The simple JSON representation of the example.public RdfSerializerBuilder ignoreInvocationExceptionsOnGetters(boolean value)
BeanContextBuilder
If BeanRuntimeException
is thrown.
ignoreInvocationExceptionsOnGetters
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder ignoreInvocationExceptionsOnGetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnGetters(
.
ignoreInvocationExceptionsOnGetters
in class WriterSerializerBuilder
public RdfSerializerBuilder ignoreInvocationExceptionsOnSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignoreInvocationExceptionsOnSetters
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder ignoreInvocationExceptionsOnSetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnSetters(
.
ignoreInvocationExceptionsOnSetters
in class WriterSerializerBuilder
public RdfSerializerBuilder ignorePropertiesWithoutSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignorePropertiesWithoutSetters
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder ignoreUnknownBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignoreUnknownBeanProperties
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder ignoreUnknownBeanProperties()
BeanContextBuilder
Shortcut for calling ignoreUnknownBeanProperties(
.
ignoreUnknownBeanProperties
in class WriterSerializerBuilder
public RdfSerializerBuilder ignoreUnknownNullBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException
is thrown.
ignoreUnknownNullBeanProperties
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder implClass(Class<?> interfaceClass, Class<?> implClass)
BeanContextBuilder
implClass
in class WriterSerializerBuilder
interfaceClass
- The interface class.implClass
- The implementation class.public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The new value for this property.public RdfSerializerBuilder locale(Locale value)
BeanContextBuilder
Specifies a default locale for serializer and parser sessions.
locale
in class WriterSerializerBuilder
value
- The new value for this property.public RdfSerializerBuilder mediaType(MediaType value)
BeanContextBuilder
Specifies a default media type value for serializer and parser sessions.
mediaType
in class WriterSerializerBuilder
value
- The new value for this property.public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The values to add to this property.
public RdfSerializerBuilder notBeanClassesReplace(Class<?>... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace
in class WriterSerializerBuilder
values
- The new value for this property.public RdfSerializerBuilder notBeanClassesReplace(Object... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace
in class WriterSerializerBuilder
values
- The new value for this property.
public RdfSerializerBuilder notBeanClassesRemove(Class<?>... values)
BeanContextBuilder
notBeanClassesRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.public RdfSerializerBuilder notBeanClassesRemove(Object... values)
BeanContextBuilder
notBeanClassesRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.
public RdfSerializerBuilder notBeanPackages(Object... values)
BeanContextBuilder
notBeanPackages
in class WriterSerializerBuilder
values
- The values to add to this property.
public RdfSerializerBuilder notBeanPackages(String... values)
BeanContextBuilder
notBeanPackages
in class WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder notBeanPackagesReplace(String... values)
BeanContextBuilder
notBeanPackagesReplace
in class WriterSerializerBuilder
values
- public RdfSerializerBuilder notBeanPackagesReplace(Object... values)
BeanContextBuilder
notBeanPackagesReplace
in class WriterSerializerBuilder
values
- public RdfSerializerBuilder notBeanPackagesRemove(String... values)
BeanContextBuilder
notBeanPackagesRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.public RdfSerializerBuilder notBeanPackagesRemove(Object... values)
BeanContextBuilder
notBeanPackagesRemove
in class WriterSerializerBuilder
values
- public RdfSerializerBuilder pojoSwaps(Class<?>... values)
BeanContextBuilder
pojoSwaps
in class WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder pojoSwaps(Object... values)
BeanContextBuilder
pojoSwaps
in class WriterSerializerBuilder
values
- The values to add to this property.
PojoSwap
.
SurrogateSwap
.
public RdfSerializerBuilder pojoSwapsReplace(Class<?>... values)
BeanContextBuilder
pojoSwapsReplace
in class WriterSerializerBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfSerializerBuilder pojoSwapsReplace(Object... values)
BeanContextBuilder
pojoSwapsReplace
in class WriterSerializerBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfSerializerBuilder pojoSwapsRemove(Class<?>... values)
BeanContextBuilder
pojoSwapsRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfSerializerBuilder pojoSwapsRemove(Object... values)
BeanContextBuilder
pojoSwapsRemove
in class WriterSerializerBuilder
values
- The values to remove from this property.
PojoSwap
.
SurrogateSwap
.
public RdfSerializerBuilder sortProperties(boolean value)
BeanContextBuilder
When
sortProperties
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder sortProperties()
BeanContextBuilder
Shortcut for calling sortProperties(
.
sortProperties
in class WriterSerializerBuilder
public RdfSerializerBuilder timeZone(TimeZone value)
BeanContextBuilder
timeZone
in class WriterSerializerBuilder
value
- The new value for this property.public RdfSerializerBuilder useEnumNames(boolean value)
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString()
.
useEnumNames
in class WriterSerializerBuilder
value
- The property value.public RdfSerializerBuilder useEnumNames()
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString()
.
useEnumNames
in class WriterSerializerBuilder
public RdfSerializerBuilder useInterfaceProxies(boolean value)
BeanContextBuilder
If InvocationHandler
if there is no other way of instantiating them.
useInterfaceProxies
in class WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder 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 WriterSerializerBuilder
value
- The new value for this property.
public RdfSerializerBuilder useJavaBeanIntrospector()
BeanContextBuilder
Shortcut for calling useJavaBeanIntrospector(
.
useJavaBeanIntrospector
in class WriterSerializerBuilder
public RdfSerializerBuilder 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 WriterSerializerBuilder
values
- The values to add to this property.public RdfSerializerBuilder set(String name, Object value)
ContextBuilder
set
in class WriterSerializerBuilder
name
- The property name.value
- The property value.PropertyStoreBuilder.set(String, Object)
public RdfSerializerBuilder set(Map<String,Object> properties)
ContextBuilder
set
in class WriterSerializerBuilder
properties
- The properties to set on this class.PropertyStoreBuilder.set(java.util.Map)
public RdfSerializerBuilder add(Map<String,Object> properties)
ContextBuilder
add
in class WriterSerializerBuilder
properties
- The properties to set on this class.PropertyStoreBuilder.add(java.util.Map)
public RdfSerializerBuilder addTo(String name, Object value)
ContextBuilder
addTo
in class WriterSerializerBuilder
name
- The property name.value
- The new value to add to the SET property.public RdfSerializerBuilder addTo(String name, String key, Object value)
ContextBuilder
addTo
in class WriterSerializerBuilder
name
- The property name.key
- The property value map key.value
- The property value map value.public RdfSerializerBuilder removeFrom(String name, Object value)
ContextBuilder
removeFrom
in class WriterSerializerBuilder
name
- The property name.value
- The property value in the SET property.public RdfSerializerBuilder apply(PropertyStore copyFrom)
ContextBuilder
apply
in class WriterSerializerBuilder
copyFrom
- The factory whose settings are being copied.public RdfSerializerBuilder applyAnnotations(AnnotationList al, VarResolverSession vrs)
ContextBuilder
applyAnnotations
in class WriterSerializerBuilder
al
- The list of all annotations annotated with PropertyStoreApply
.vrs
- The string resolver for resolving variables in annotation values.public RdfSerializerBuilder 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 WriterSerializerBuilder
fromClasses
- The classes on which the annotations are defined.public RdfSerializerBuilder 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 WriterSerializerBuilder
fromMethods
- The methods on which the annotations are defined.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.