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 |
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<?> fromClass)
Applies any of the various
|
RdfSerializerBuilder |
applyAnnotations(Method fromMethod)
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, uriResolutiondebug, examples, excludeProperties, excludeProperties, excludeProperties, fluentSetters, fluentSetters, includeProperties, includeProperties, includeProperties, propertyNamerbuild, getPropertyStore, getPropertyStoreBuilder, peek, peekpublic RdfSerializerBuilder addRootProperty
Shortcut for calling addRootProperty(.
public RdfSerializerBuilder()
public RdfSerializerBuilder(PropertyStore ps)
ps - The initial configuration settings for this builder.public RdfSerializer build()
ContextBuilderbuild in class WriterSerializerBuilderpublic 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)
WriterSerializerBuilderThe character set to use for writing Files to the file system.
Used when passing in files to Serializer.serialize(Object, Object).
fileCharset in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder maxIndent(int value)
WriterSerializerBuilderSpecifies the maximum indentation level in the serialized document.
maxIndent in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder quoteChar(char value)
WriterSerializerBuilderThis is the character used for quoting attributes and values.
quoteChar in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder sq()
WriterSerializerBuilder
Shortcut for calling quoteChar(.
sq in class WriterSerializerBuilderpublic RdfSerializerBuilder streamCharset(Charset value)
WriterSerializerBuilderThe 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 WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder useWhitespace(boolean value)
WriterSerializerBuilder
If
useWhitespace in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder useWhitespace()
WriterSerializerBuilder
Shortcut for calling useWhitespace(.
useWhitespace in class WriterSerializerBuilderpublic RdfSerializerBuilder ws()
WriterSerializerBuilder
Shortcut for calling useWhitespace(.
ws in class WriterSerializerBuilderpublic RdfSerializerBuilder addBeanTypes(boolean value)
SerializerBuilder
If
addBeanTypes in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder addBeanTypes()
SerializerBuilder
Shortcut for calling addBeanTypes(.
addBeanTypes in class SerializerBuilderpublic RdfSerializerBuilder addRootType(boolean value)
SerializerBuilderWhen 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 SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder addRootType()
SerializerBuilder
Shortcut for calling addRootType(.
addRootType in class SerializerBuilderpublic RdfSerializerBuilder detectRecursions(boolean value)
BeanTraverseBuilderSpecifies that recursions should be checked for during traversal.
detectRecursions in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder detectRecursions()
BeanTraverseBuilder
Shortcut for calling detectRecursions(.
detectRecursions in class SerializerBuilderpublic RdfSerializerBuilder ignoreRecursions(boolean value)
BeanTraverseBuilder
If
ignoreRecursions in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder ignoreRecursions()
BeanTraverseBuilder
Shortcut for calling ignoreRecursions(.
ignoreRecursions in class SerializerBuilderpublic RdfSerializerBuilder initialDepth(int value)
BeanTraverseBuilderThe initial indentation level at the root.
initialDepth in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder listener(Class<? extends SerializerListener> value)
SerializerBuilderClass used to listen for errors and warnings that occur during serialization.
listener in class SerializerBuildervalue - 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 SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder sortCollections(boolean value)
SerializerBuilderCopies and sorts the contents of arrays and collections before serializing them.
sortCollections in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder sortCollections()
SerializerBuilder
Shortcut for calling sortCollections(.
sortCollections in class SerializerBuilderpublic RdfSerializerBuilder sortMaps(boolean value)
SerializerBuilderCopies and sorts the contents of maps before serializing them.
sortMaps in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder sortMaps()
SerializerBuilder
Shortcut for calling sortMaps(.
sortMaps in class SerializerBuilderpublic RdfSerializerBuilder trimEmptyCollections(boolean value)
SerializerBuilder
If
trimEmptyCollections in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder trimEmptyCollections()
SerializerBuilder
Shortcut for calling trimEmptyCollections(.
trimEmptyCollections in class SerializerBuilderpublic RdfSerializerBuilder trimEmptyMaps(boolean value)
SerializerBuilder
If
trimEmptyMaps in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder trimEmptyMaps()
SerializerBuilder
Shortcut for calling trimEmptyMaps(.
trimEmptyMaps in class SerializerBuilderpublic RdfSerializerBuilder trimNullProperties(boolean value)
SerializerBuilder
If
trimNullProperties in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder trimStrings(boolean value)
SerializerBuilder
If String.trim() before being serialized.
trimStrings in class SerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder trimStrings()
SerializerBuilder
Shortcut for calling trimStrings(.
trimStrings in class SerializerBuilderpublic RdfSerializerBuilder uriContext(UriContext value)
SerializerBuilderBean used for resolution of URIs to absolute or root-relative form.
uriContext in class SerializerBuildervalue - The new value for this property.public RdfSerializerBuilder uriRelativity(UriRelativity value)
SerializerBuilderDefines what relative URIs are relative to when serializing URI/URL objects.
uriRelativity in class SerializerBuildervalue - The new value for this property.
UriRelativity.RESOURCEpublic RdfSerializerBuilder uriResolution(UriResolution value)
SerializerBuilderDefines the resolution level for URIs when serializing URI/URL objects.
uriResolution in class SerializerBuildervalue - The new value for this property.
UriResolution.NONEpublic RdfSerializerBuilder beanClassVisibility(Visibility value)
BeanContextBuilderClasses are not considered beans unless they meet the minimum visibility requirements.
For example, if the visibility is
beanClassVisibility in class WriterSerializerBuildervalue - The new value for this property.
Visibility.PUBLIC.public RdfSerializerBuilder beanConstructorVisibility(Visibility value)
BeanContextBuilderOnly look for constructors with the specified minimum visibility.
beanConstructorVisibility in class WriterSerializerBuildervalue - The new value for this property.
Visibility.PUBLIC.@Deprecated public RdfSerializerBuilder beanDictionary(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but takes in an array of classes.
beanDictionary in class WriterSerializerBuildervalues - The values to add to this property.@Deprecated public RdfSerializerBuilder beanDictionary(Object... values)
BeanContextBuilderAdds to the list of classes that make up the bean dictionary in this bean context.
beanDictionary in class WriterSerializerBuildervalues - The values to add to this property.@Deprecated public RdfSerializerBuilder beanDictionaryReplace(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but replaces the existing value.
beanDictionaryReplace in class WriterSerializerBuildervalues - The new values for this property.@Deprecated public RdfSerializerBuilder beanDictionaryReplace(Object... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but replaces the existing value.
beanDictionaryReplace in class WriterSerializerBuildervalues - The new values for this property.@Deprecated public RdfSerializerBuilder beanDictionaryRemove(Class<?>... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
beanDictionaryRemove in class WriterSerializerBuildervalues - The values to remove from this property.@Deprecated public RdfSerializerBuilder beanDictionaryRemove(Object... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
beanDictionaryRemove in class WriterSerializerBuildervalues - The values to remove from this property.public RdfSerializerBuilder beanFieldVisibility(Visibility value)
BeanContextBuilderOnly look for bean fields with the specified minimum visibility.
beanFieldVisibility in class WriterSerializerBuildervalue - 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 WriterSerializerBuildervalues - 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 WriterSerializerBuildervalues - 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 WriterSerializerBuildervalues - 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 WriterSerializerBuildervalues - 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)
BeanContextBuilderRemoves from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove in class WriterSerializerBuildervalues - 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)
BeanContextBuilderRemoves from the list of classes that make up the bean filters in this bean context.
beanFiltersRemove in class WriterSerializerBuildervalues - 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 WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder beanMapPutReturnsOldValue()
BeanContextBuilder
Shortcut for calling beanMapPutReturnsOldValue(.
beanMapPutReturnsOldValue in class WriterSerializerBuilderpublic RdfSerializerBuilder beanMethodVisibility(Visibility value)
BeanContextBuilderOnly look for bean methods with the specified minimum visibility.
beanMethodVisibility in class WriterSerializerBuildervalue - The new value for this property.
Visibility.PUBLICpublic RdfSerializerBuilder beansRequireDefaultConstructor(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString() method.
beansRequireDefaultConstructor in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder beansRequireDefaultConstructor()
BeanContextBuilder
Shortcut for calling beansRequireDefaultConstructor(.
beansRequireDefaultConstructor in class WriterSerializerBuilderpublic 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 WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder beansRequireSerializable()
BeanContextBuilder
Shortcut for calling beansRequireSerializable(.
beansRequireSerializable in class WriterSerializerBuilderpublic RdfSerializerBuilder beansRequireSettersForGetters(boolean value)
BeanContextBuilder
If
Otherwise, they will be ignored.
beansRequireSettersForGetters in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder beansRequireSettersForGetters()
BeanContextBuilder
Shortcut for calling beansRequireSettersForGetters(.
beansRequireSettersForGetters in class WriterSerializerBuilderpublic RdfSerializerBuilder beansRequireSomeProperties(boolean value)
BeanContextBuilder
If
Otherwise, the bean will be serialized as a string using the Object.toString() method.
beansRequireSomeProperties in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder beanTypePropertyName(String value)
BeanContextBuilderThis 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 WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder bpi(Class<?> beanClass, String value)
BeanContextBuilderSpecifies the set and order of names of properties associated with the bean class.
bpi in class WriterSerializerBuilderbeanClass - The bean class.value - Comma-delimited list of property names.public RdfSerializerBuilder bpi(Map<String,String> values)
BeanContextBuilderSpecifies the set and order of names of properties associated with the bean class.
bpi in class WriterSerializerBuildervalues - The new value for this property.public RdfSerializerBuilder bpi(String beanClassName, String value)
BeanContextBuilderSpecifies the set and order of names of properties associated with the bean class.
bpi in class WriterSerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public RdfSerializerBuilder bpx(Class<?> beanClass, String properties)
BeanContextBuilderSpecifies to exclude the specified list of properties for the specified bean class.
bpx in class WriterSerializerBuilderbeanClass - The bean class.properties - Comma-delimited list of property names.public RdfSerializerBuilder bpx(Map<String,String> values)
BeanContextBuilderSpecifies to exclude the specified list of properties for the specified bean classes.
bpx in class WriterSerializerBuildervalues - The new value for this property.public RdfSerializerBuilder bpx(String beanClassName, String value)
BeanContextBuilderbpx in class WriterSerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public RdfSerializerBuilder bpro(Class<?> beanClass, String value)
BeanContextBuilderSpecifies the read-only properties for the specified bean class.
bpro in class WriterSerializerBuilderbeanClass - The bean class.value - Comma-delimited list of property names.public RdfSerializerBuilder bpro(Map<String,String> values)
BeanContextBuilderSpecifies the read-only properties for the specified bean classes.
bpro in class WriterSerializerBuildervalues - The new value for this property.public RdfSerializerBuilder bpro(String beanClassName, String value)
BeanContextBuilderSpecifies the read-only properties for the specified bean class.
bpro in class WriterSerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public RdfSerializerBuilder bpwo(Class<?> beanClass, String properties)
BeanContextBuilderSpecifies the write-only properties for the specified bean class.
bpwo in class WriterSerializerBuilderbeanClass - The bean class.properties - Comma-delimited list of property names.public RdfSerializerBuilder bpwo(Map<String,String> values)
BeanContextBuilderSpecifies the write-only properties for the specified bean classes.
bpwo in class WriterSerializerBuildervalues - The new value for this property.public RdfSerializerBuilder bpwo(String beanClassName, String value)
BeanContextBuilderSpecifies the write-only properties for the specified bean class.
bpwo in class WriterSerializerBuilderbeanClassName - The bean class name.
value - Comma-delimited list of property names.public RdfSerializerBuilder debug()
BeanContextBuilder
Shortcut for calling debug(.
debug in class WriterSerializerBuilderpublic RdfSerializerBuilder dictionary(Class<?>... values)
BeanContextBuilder
Same as BeanContextBuilder.beanDictionary(Object...) but takes in an array of classes.
dictionary in class WriterSerializerBuildervalues - The values to add to this property.public RdfSerializerBuilder dictionary(Object... values)
BeanContextBuilderAdds to the list of classes that make up the bean dictionary in this bean context.
dictionary in class WriterSerializerBuildervalues - 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 WriterSerializerBuildervalues - 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 WriterSerializerBuildervalues - The new values for this property.public RdfSerializerBuilder dictionaryRemove(Class<?>... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove in class WriterSerializerBuildervalues - The values to remove from this property.public RdfSerializerBuilder dictionaryRemove(Object... values)
BeanContextBuilderRemoves from the list of classes that make up the bean dictionary in this bean context.
dictionaryRemove in class WriterSerializerBuildervalues - The values to remove from this property.public <T> RdfSerializerBuilder example(Class<T> c, T o)
BeanContextBuilderSpecifies an example of the specified class.
example in class WriterSerializerBuilderc - The POJO class.o - An instance of the POJO class used for examples.public <T> RdfSerializerBuilder exampleJson(Class<T> c, String value)
BeanContextBuilderSpecifies an example of the specified class.
exampleJson in class WriterSerializerBuilderT - 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 WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder ignoreInvocationExceptionsOnGetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnGetters(.
ignoreInvocationExceptionsOnGetters in class WriterSerializerBuilderpublic RdfSerializerBuilder ignoreInvocationExceptionsOnSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignoreInvocationExceptionsOnSetters in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder ignoreInvocationExceptionsOnSetters()
BeanContextBuilder
Shortcut for calling ignoreInvocationExceptionsOnSetters(.
ignoreInvocationExceptionsOnSetters in class WriterSerializerBuilderpublic RdfSerializerBuilder ignorePropertiesWithoutSetters(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignorePropertiesWithoutSetters in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder ignoreUnknownBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignoreUnknownBeanProperties in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder ignoreUnknownBeanProperties()
BeanContextBuilder
Shortcut for calling ignoreUnknownBeanProperties(.
ignoreUnknownBeanProperties in class WriterSerializerBuilderpublic RdfSerializerBuilder ignoreUnknownNullBeanProperties(boolean value)
BeanContextBuilder
If
Otherwise, a BeanRuntimeException is thrown.
ignoreUnknownNullBeanProperties in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder implClass(Class<?> interfaceClass, Class<?> implClass)
BeanContextBuilderimplClass in class WriterSerializerBuilderinterfaceClass - The interface class.implClass - The implementation class.public RdfSerializerBuilder implClasses(Map<String,Class<?>> values)
BeanContextBuilderFor 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 WriterSerializerBuildervalues - The new value for this property.public RdfSerializerBuilder locale(Locale value)
BeanContextBuilderSpecifies a default locale for serializer and parser sessions.
locale in class WriterSerializerBuildervalue - The new value for this property.public RdfSerializerBuilder mediaType(MediaType value)
BeanContextBuilderSpecifies a default media type value for serializer and parser sessions.
mediaType in class WriterSerializerBuildervalue - 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 WriterSerializerBuildervalues - 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 WriterSerializerBuildervalues - The values to add to this property.
public RdfSerializerBuilder notBeanClassesReplace(Class<?>... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace in class WriterSerializerBuildervalues - The new value for this property.public RdfSerializerBuilder notBeanClassesReplace(Object... values)
BeanContextBuilder
Not-bean classes are converted to
notBeanClassesReplace in class WriterSerializerBuildervalues - The new value for this property.
public RdfSerializerBuilder notBeanClassesRemove(Class<?>... values)
BeanContextBuildernotBeanClassesRemove in class WriterSerializerBuildervalues - The values to remove from this property.public RdfSerializerBuilder notBeanClassesRemove(Object... values)
BeanContextBuildernotBeanClassesRemove in class WriterSerializerBuildervalues - The values to remove from this property.
public RdfSerializerBuilder notBeanPackages(Object... values)
BeanContextBuildernotBeanPackages in class WriterSerializerBuildervalues - The values to add to this property.
public RdfSerializerBuilder notBeanPackages(String... values)
BeanContextBuildernotBeanPackages in class WriterSerializerBuildervalues - The values to add to this property.public RdfSerializerBuilder notBeanPackagesReplace(String... values)
BeanContextBuildernotBeanPackagesReplace in class WriterSerializerBuildervalues - public RdfSerializerBuilder notBeanPackagesReplace(Object... values)
BeanContextBuildernotBeanPackagesReplace in class WriterSerializerBuildervalues - public RdfSerializerBuilder notBeanPackagesRemove(String... values)
BeanContextBuildernotBeanPackagesRemove in class WriterSerializerBuildervalues - The values to remove from this property.public RdfSerializerBuilder notBeanPackagesRemove(Object... values)
BeanContextBuildernotBeanPackagesRemove in class WriterSerializerBuildervalues - public RdfSerializerBuilder pojoSwaps(Class<?>... values)
BeanContextBuilderpojoSwaps in class WriterSerializerBuildervalues - The values to add to this property.public RdfSerializerBuilder pojoSwaps(Object... values)
BeanContextBuilderpojoSwaps in class WriterSerializerBuildervalues - The values to add to this property.
PojoSwap.
SurrogateSwap.
public RdfSerializerBuilder pojoSwapsReplace(Class<?>... values)
BeanContextBuilderpojoSwapsReplace in class WriterSerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public RdfSerializerBuilder pojoSwapsReplace(Object... values)
BeanContextBuilderpojoSwapsReplace in class WriterSerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public RdfSerializerBuilder pojoSwapsRemove(Class<?>... values)
BeanContextBuilderpojoSwapsRemove in class WriterSerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public RdfSerializerBuilder pojoSwapsRemove(Object... values)
BeanContextBuilderpojoSwapsRemove in class WriterSerializerBuildervalues - The values to remove from this property.
PojoSwap.
SurrogateSwap.
public RdfSerializerBuilder sortProperties(boolean value)
BeanContextBuilder
When
sortProperties in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder sortProperties()
BeanContextBuilder
Shortcut for calling sortProperties(.
sortProperties in class WriterSerializerBuilderpublic RdfSerializerBuilder timeZone(TimeZone value)
BeanContextBuildertimeZone in class WriterSerializerBuildervalue - 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 WriterSerializerBuildervalue - The property value.public RdfSerializerBuilder useEnumNames()
BeanContextBuilder
When enabled, enums are always serialized by name instead of using Object.toString().
useEnumNames in class WriterSerializerBuilderpublic RdfSerializerBuilder useInterfaceProxies(boolean value)
BeanContextBuilder
If InvocationHandler if there is no other way of instantiating them.
useInterfaceProxies in class WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder useJavaBeanIntrospector(boolean value)
BeanContextBuilderUsing 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 WriterSerializerBuildervalue - The new value for this property.
public RdfSerializerBuilder useJavaBeanIntrospector()
BeanContextBuilder
Shortcut for calling useJavaBeanIntrospector(.
useJavaBeanIntrospector in class WriterSerializerBuilderpublic RdfSerializerBuilder set(String name, Object value)
ContextBuilderset in class WriterSerializerBuildername - The property name.value - The property value.PropertyStoreBuilder.set(String, Object)public RdfSerializerBuilder set(Map<String,Object> properties)
ContextBuilderset in class WriterSerializerBuilderproperties - The properties to set on this class.PropertyStoreBuilder.set(java.util.Map)public RdfSerializerBuilder add(Map<String,Object> properties)
ContextBuilderadd in class WriterSerializerBuilderproperties - The properties to set on this class.PropertyStoreBuilder.add(java.util.Map)public RdfSerializerBuilder addTo(String name, Object value)
ContextBuilderaddTo in class WriterSerializerBuildername - The property name.value - The new value to add to the SET property.public RdfSerializerBuilder addTo(String name, String key, Object value)
ContextBuilderaddTo in class WriterSerializerBuildername - The property name.key - The property value map key.value - The property value map value.public RdfSerializerBuilder removeFrom(String name, Object value)
ContextBuilderremoveFrom in class WriterSerializerBuildername - The property name.value - The property value in the SET property.public RdfSerializerBuilder apply(PropertyStore copyFrom)
ContextBuilderapply in class WriterSerializerBuildercopyFrom - The factory whose settings are being copied.public RdfSerializerBuilder applyAnnotations(AnnotationList al, VarResolverSession vrs)
ContextBuilderapplyAnnotations in class WriterSerializerBuilderal - The list of all annotations annotated with PropertyStoreApply.vrs - The string resolver for resolving variables in annotation values.public RdfSerializerBuilder applyAnnotations(Class<?> fromClass)
ContextBuilderApplies 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 WriterSerializerBuilderfromClass - The class on which the annotations are defined.public RdfSerializerBuilder applyAnnotations(Method fromMethod)
ContextBuilderApplies 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 WriterSerializerBuilderfromMethod - The method on which the annotations are defined.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.