public final class RdfSerializerSession extends WriterSerializerSession
RdfSerializer.
This class is NOT thread safe. It is typically discarded after one-time use although it can be reused within the same thread.
indent| Modifier | Constructor and Description |
|---|---|
protected |
RdfSerializerSession(RdfSerializer ctx,
SerializerSessionArgs args)
Create a new session using properties specified in the context.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSerialize(SerializerPipe out,
Object o)
Serializes a POJO to the specified output stream or writer.
|
protected RdfCollectionFormat |
getCollectionFormat()
Configuration property: RDF format for representing collections and arrays.
|
protected Map<String,Object> |
getJenaProperties()
Configuration property: All Jena-related configuration properties.
|
protected Namespace |
getJuneauBpNs()
Configuration property: Default XML namespace for bean properties.
|
protected Namespace |
getJuneauNs()
Configuration property: XML namespace for Juneau properties.
|
protected String |
getLanguage()
Configuration property: RDF language.
|
protected Namespace[] |
getNamespaces()
Configuration property: Default namespaces.
|
protected boolean |
isAddBeanTypes()
Configuration property: Add
|
protected boolean |
isAddLiteralTypes()
Configuration property: Add XSI data types to non-
|
protected boolean |
isAddRootProp()
Configuration property: Add RDF root identifier property to root node.
|
protected boolean |
isAutoDetectNamespaces()
Configuration property: Auto-detect namespace usage.
|
protected boolean |
isLooseCollections()
Configuration property: Collections should be serialized and parsed as loose collections.
|
protected boolean |
isUseXmlNamespaces()
Configuration property: Reuse XML namespaces when RDF namespaces not specified.
|
ObjectMap |
toMap()
Returns the properties defined on this bean context as a simple map for debugging purposes.
|
createPipe, getMaxIndent, getQuoteChar, isUseWhitespace, isWriterSerializer, serialize, serializeToStringcanIgnoreValue, createBeanTypeNameProperty, createDefaultVarResolverSession, generalize, getBeanTypeName, getExpectedRootType, getJavaMethod, getListener, getListener, getResponseHeaders, getUriContext, getUriRelativity, getUriResolution, getUriResolver, getVarResolver, isAddRootType, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimNullProperties, isTrimStrings, onBeanGetterException, onError, push2, relativizeUri, resolve, resolveUri, serialize, sort, sort, swap, toList, toString, trim, varSessionObjectgetInitialDepth, getLastLocation, getMaxDepth, getOptionalType, getOptionalValue, getStack, isDetectRecursions, isIgnoreRecursions, isOptional, pop, push, setCurrentClass, setCurrentProperty, willRecurse_class, checkForWarnings, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, getArgsClassMeta, getBeanClassVisibility, getBeanConstructorVisibility, getBeanDictionaryClasses, getBeanFieldVisibility, getBeanFilters, getBeanMeta, getBeanMethodVisibility, getBeanRegistry, getBeanTypePropertyName, getBeanTypePropertyName, getBpi, getBpro, getBpwo, getBpx, getClassMeta, getClassMeta, getClassMetaForObject, getClassMetaForObject, getExamples, getImplClasses, getLocale, getMediaType, getNotBeanClasses, getNotBeanPackagesNames, getNotBeanPackagesPrefixes, getPojoSwaps, getPropertyNamer, getSchema, getStringBuilder, getTimeZone, getTimeZoneId, isBean, isBean, isBeanMapPutReturnsOldValue, isBeansRequireDefaultConstructor, isBeansRequireSerializable, isBeansRequireSettersForGetters, isBeansRequireSomeProperties, isDebug, isFluentSetters, isIgnoreInvocationExceptionsOnGetters, isIgnoreInvocationExceptionsOnSetters, isIgnorePropertiesWithoutSetters, isIgnoreUnknownBeanProperties, isIgnoreUnknownNullBeanProperties, isSortProperties, isUseEnumNames, isUseInterfaceProxies, isUseJavaBeanIntrospector, newBean, newBean, newBeanMap, newBeanMap, object, returnStringBuilder, string, toArray, toBeanMap, toBeanMapaddToCache, addToCache, addWarning, getClassProperty, getFromCache, getInstanceArrayProperty, getInstanceProperty, getLogger, getProperties, getProperty, getProperty, getProperty, getPropertyKeys, getWarnings, hasProperty, hasWarnings, toStringprotected RdfSerializerSession(RdfSerializer ctx, SerializerSessionArgs args)
ctx - The context creating this session object.
The context contains all the configuration settings for this object.args - Runtime arguments.
These specify session-level information such as locale and URI context.
It also include session-level properties that override the properties defined on the bean and
serializer contexts.protected void doSerialize(SerializerPipe out, Object o) throws IOException, SerializeException
SerializerSessionThis method should NOT close the context object.
doSerialize in class SerializerSessionout - Where to send the output from the serializer.o - The object to serialize.IOException - Thrown by underlying stream.SerializeException - Problem occurred trying to serialize object.protected final RdfCollectionFormat getCollectionFormat()
RdfCommon.RDF_collectionFormatprotected final Namespace getJuneauBpNs()
RdfCommon.RDF_juneauBpNsprotected final Namespace getJuneauNs()
RdfCommon.RDF_juneauNsprotected final String getLanguage()
RdfCommon.RDF_languageprotected final boolean isLooseCollections()
RdfCommon.RDF_looseCollectionsprotected final Map<String,Object> getJenaProperties()
protected final boolean isAddBeanTypes()
isAddBeanTypes in class SerializerSessionRdfSerializer.RDF_addBeanTypesprotected final boolean isAddLiteralTypes()
RdfSerializer.RDF_addLiteralTypesprotected final boolean isAddRootProp()
RdfSerializer.RDF_addRootPropertyprotected final boolean isAutoDetectNamespaces()
RdfSerializer.RDF_autoDetectNamespacesprotected final Namespace[] getNamespaces()
RdfSerializer.RDF_namespacesprotected final boolean isUseXmlNamespaces()
@XmlNs and @Xml will be inherited by the RDF serializers.
@RdfNs and @Rdf.RdfSerializer.RDF_useXmlNamespacespublic ObjectMap toMap()
SessiontoMap in class WriterSerializerSessionCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.