Package io.permazen.core.util
Class XMLObjectSerializer.OutputOptions
java.lang.Object
io.permazen.core.util.XMLObjectSerializer.OutputOptions
- Enclosing class:
- XMLObjectSerializer
Options for the output XML format produced by
XMLObjectSerializer
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder forXMLObjectSerializer.OutputOptions
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
copy()
Create aXMLObjectSerializer.OutputOptions.Builder
that is pre-configured as a copy of this instance.boolean
Determine whether to output XML element names that are based on the corresponding object or field name.boolean
Determine whether to include storage ID's in the output.boolean
Determine whether to pretty-print the XML, i.e., indent and include storage ID comments.Function<? super Transaction,
? extends Stream<? extends ObjId>> Get the function that streams the objects to include in the output (identified byObjId
).Function<? super Transaction,
? extends Stream<? extends SchemaModel>> Get the function that streams theSchemaModel
s to include in the output.
-
Method Details
-
schemaGenerator
Get the function that streams theSchemaModel
s to include in the output.- Returns:
SchemaModel
streaming function, never null
-
objectGenerator
Get the function that streams the objects to include in the output (identified byObjId
).- Returns:
ObjId
streaming function, never null
-
isElementsAsNames
public boolean isElementsAsNames()Determine whether to output XML element names that are based on the corresponding object or field name.- Returns:
- whether to use custom XML element names
-
isIncludeStorageIds
public boolean isIncludeStorageIds()Determine whether to include storage ID's in the output.- Returns:
- whether to include storage ID's
-
isPrettyPrint
public boolean isPrettyPrint()Determine whether to pretty-print the XML, i.e., indent and include storage ID comments.- Returns:
- whether to pretty-print
-
builder
-
copy
Create aXMLObjectSerializer.OutputOptions.Builder
that is pre-configured as a copy of this instance.- Returns:
- new pre-configured builder
-