Package org.apache.juneau.marshall.jena
Class RdfStreamSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>
java.lang.Object
org.apache.juneau.marshall.Context.Builder<SELF>
org.apache.juneau.marshall.MarshallingContextable.Builder<SELF>
org.apache.juneau.marshall.MarshallingTraverseContext.Builder<SELF>
org.apache.juneau.marshall.serializer.Serializer.Builder<SELF>
org.apache.juneau.marshall.serializer.OutputStreamSerializer.Builder<SELF>
org.apache.juneau.marshall.jena.RdfStreamSerializer.Builder<SELF>
- Direct Known Subclasses:
RdfStreamSerializer.DefaultBuilder
- Enclosing class:
- RdfStreamSerializer
public abstract static class RdfStreamSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>
extends OutputStreamSerializer.Builder<SELF>
Builder class.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor, default settings.protectedBuilder(RdfStreamSerializer copyFrom) Copy constructor.protectedBuilder(RdfStreamSerializer.Builder<?> copyFrom) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the accept media types that the serializer can handle.addBeanTypes(boolean value) Same asSerializer.Builder.addBeanTypes()but allows you to explicitly specify the value.build()Build the object.abstract SELFcopy()Copy creator.hashKey()Returns the hashkey of this builder.RDF language (e.g.Specifies the media type that this serializer produces.Methods inherited from class org.apache.juneau.marshall.serializer.Serializer.Builder
addBeanTypes, addRootType, addRootType, getAccept, getProduces, keepNullProperties, keepNullProperties, listener, nonDefault, nonDefault, sortCollections, sortCollections, sortMaps, sortMaps, trimEmptyCollections, trimEmptyCollections, trimEmptyMaps, trimEmptyMaps, trimStrings, trimStrings, uriContext, uriRelativity, uriResolutionMethods inherited from class org.apache.juneau.marshall.MarshallingTraverseContext.Builder
detectRecursions, detectRecursions, ignoreRecursions, ignoreRecursions, initialDepth, maxDepthMethods inherited from class org.apache.juneau.marshall.MarshallingContextable.Builder
activeView, annotations, beanClassVisibility, beanConstructorVisibility, beanDictionary, beanFieldVisibility, beanInterceptor, beanMapPutReturnsOldValue, beanMethodVisibility, beanProperties, beanProperties, beanProperties, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beansRequireDefaultConstructor, beansRequireSerializable, beansRequireSettersForGetters, bigNumberFormat, binaryFormat, bitSetFormat, booleanFormat, calendarFormat, classFormat, classLoader, currencyFormat, dateFormat, debug, dictionaryOn, disableBeansRequireSomeProperties, disableDefaultViewInclusion, disableIgnoreMissingSetters, disableIgnoreTransientFields, disableIgnoreUnknownNullBeanProperties, disableInterfaceProxies, durationFormat, enumFormat, example, example, findFluentSetters, findFluentSetters, floatFormat, ignoreInvocationExceptionsOnGetters, ignoreInvocationExceptionsOnSetters, ignoreUnknownBeanProperties, ignoreUnknownEnumValues, implClass, implClasses, interfaceClass, interfaces, locale, localeFormat, marshallingContext, marshallingContext, marshallingContext, marshallingContext, mediaType, notBeanClasses, notBeanPackages, periodFormat, propertyNamer, propertyNamer, recordComponentOrder, stopClass, swap, swap, swaps, swaps, temporalFormat, timeZone, timeZoneFormat, typeName, typePropertyName, typePropertyName, unsortedProperties, unsortedProperties, useJavaBeanIntrospector, uuidFormat, validateSchema, validateSchemaMethods inherited from class org.apache.juneau.marshall.Context.Builder
annotations, apply, applyAnnotations, applyAnnotations, asSubtype, build, cache, canApply, copyOrNull, debug, getApplied, getType, impl, isDebug, registerBuilders, self, type
-
Constructor Details
-
Builder
protected Builder()Constructor, default settings. -
Builder
Copy constructor.- Parameters:
copyFrom- The builder to copy from.
Cannot benull .
-
Builder
Copy constructor.- Parameters:
copyFrom- The bean to copy from.
Cannot benull .
-
-
Method Details
-
language
RDF language (e.g.Constants.LANG_RDFTHRIFT,Constants.LANG_RDFPROTO).- Parameters:
value- The RDF language.- Returns:
- This object.
-
produces
Description copied from class:Serializer.BuilderSpecifies the media type that this serializer produces.- Overrides:
producesin classSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>- Parameters:
value- The value for this setting.
Can benull (clears the produces media type).- Returns:
- This object.
-
accept
Description copied from class:Serializer.BuilderSpecifies the accept media types that the serializer can handle.Can contain meta-characters per the
media-type specification of RFC2616/14.1If empty, then assumes the only media type supported is
produces .For example, if this serializer produces
"application/json" but should handle media types of"application/json" and"text/json" , then the arguments should be:builder .produces("application/json" );builder .accept("application/json,text/json" );The accept value can also contain q-values.
- Overrides:
acceptin classSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>- Parameters:
value- The value for this setting.
Can benull (will default to the value specified bySerializer.Builder.produces(String)).- Returns:
- This object.
-
addBeanTypes
Description copied from class:Serializer.BuilderSame asSerializer.Builder.addBeanTypes()but allows you to explicitly specify the value.- Overrides:
addBeanTypesin classSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>- Parameters:
value- The value for this setting.- Returns:
- This object.
-
build
Description copied from class:Context.BuilderBuild the object.- Overrides:
buildin classOutputStreamSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>- Returns:
- The built object.
-
copy
Description copied from class:Context.BuilderCopy creator.- Specified by:
copyin classOutputStreamSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>- Returns:
- A new mutable copy of this builder.
-
hashKey
Description copied from class:Context.BuilderReturns the hashkey of this builder.Used to return previously instantiated context beans that have matching hashkeys. The
HashKeyobject is suitable for use as a hashmap key of a map of context beans. A context bean is considered equivalent if theHashKey.equals(Object)method is the same.- Overrides:
hashKeyin classSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>- Returns:
- The hashkey of this builder.
-