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 |
---|---|
ObjectMap |
asMap()
Returns the properties defined on this bean context as a simple map for debugging purposes.
|
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 Namespace |
getJuneauBpNs()
Configuration property: Default XML namespace for bean properties.
|
protected Namespace |
getJuneauNs()
Configuration property: XML namespace for Juneau properties.
|
protected String |
getRdfLanguage()
Configuration property: RDF language.
|
boolean |
isAddBeanTypeProperties()
Deprecated.
Not used.
|
protected boolean |
isAddBeanTypes()
Configuration property: Add
|
protected boolean |
isAddLiteralTypes()
Configuration property: Add XSI data types to non-
String literals. |
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.
|
getMaxIndent, getQuoteChar, isWriterSerializer, serialize, serializeToString
canIgnoreValue, createBeanTypeNameProperty, createPipe, generalize, getBeanTypeName, getExpectedRootType, getJavaMethod, getListener, getListener, getResponseHeaders, getUriContext, getUriRelativity, getUriResolution, getUriResolver, isAddRootType, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimNullProperties, isTrimStrings, isUseWhitespace, onBeanGetterException, onError, relativizeUri, resolveUri, serialize, sort, sort, toList, toString, trim
getInitialDepth, getLastLocation, getMaxDepth, getStack, isDetectRecursions, isIgnoreRecursions, pop, push, setCurrentClass, setCurrentProperty, willRecurse
_class, checkForWarnings, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, getArgsClassMeta, getBeanClassVisibility, getBeanConstructorVisibility, getBeanDictionaryClasses, getBeanFieldVisibility, getBeanMeta, getBeanMethodVisibility, getBeanRegistry, getBeanTypePropertyName, getBeanTypePropertyName, getClassMeta, getClassMeta, getClassMetaForObject, getLocale, getMediaType, getPropertyNamer, getSchema, getStringBuilder, getTimeZone, isBean, isBean, isBeanMapPutReturnsOldValue, isBeansRequireDefaultConstructor, isBeansRequireSerializable, isBeansRequireSettersForGetters, isBeansRequireSomeProperties, isDebug, isFluentSetters, isIgnoreInvocationExceptionsOnGetters, isIgnoreInvocationExceptionsOnSetters, isIgnorePropertiesWithoutSetters, isIgnoreUnknownBeanProperties, isIgnoreUnknownNullBeanProperties, isSortProperties, isUseEnumNames, isUseInterfaceProxies, isUseJavaBeanIntrospector, newBean, newBean, newBeanMap, newBeanMap, newInstance, newInstance, newInstanceFromOuter, object, returnStringBuilder, string, toArray, toBeanMap, toBeanMap
addToCache, addToCache, addWarning, getClassProperty, getFromCache, getInstanceArrayProperty, getInstanceProperty, getLogger, getProperties, getProperty, getProperty, getProperty, getPropertyKeys, getWarnings, hasProperty, hasWarnings, toString
protected 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.public ObjectMap asMap()
Session
asMap
in class WriterSerializerSession
protected void doSerialize(SerializerPipe out, Object o) throws Exception
SerializerSession
This method should NOT close the context object.
doSerialize
in class SerializerSession
out
- Where to send the output from the serializer.o
- The object to serialize.Exception
- If thrown from underlying stream, or if the input contains a syntax error or is malformed.protected final boolean isAddLiteralTypes()
String
literals.RdfSerializer.RDF_addLiteralTypes
protected final boolean isAddRootProp()
http://www.apache.org/juneau/root
is added with a value of RdfSerializer.RDF_addRootProperty
protected final boolean isUseXmlNamespaces()
@XmlNs
and @Xml
will be inherited by the RDF serializers.
@RdfNs
and @Rdf
.RdfCommon.RDF_useXmlNamespaces
protected final boolean isLooseCollections()
RdfCommon.RDF_looseCollections
protected final boolean isAutoDetectNamespaces()
RdfSerializer.RDF_autoDetectNamespaces
protected final boolean isAddBeanTypes()
isAddBeanTypes
in class SerializerSession
RdfSerializer.RDF_addBeanTypes
protected final String getRdfLanguage()
RdfCommon.RDF_language
protected final Namespace getJuneauNs()
RdfCommon.RDF_juneauNs
protected final Namespace getJuneauBpNs()
RdfCommon.RDF_juneauBpNs
protected final RdfCollectionFormat getCollectionFormat()
RdfCommon.RDF_collectionFormat
@Deprecated public final boolean isAddBeanTypeProperties()
Copyright © 2018 Apache. All rights reserved.