public interface PrismSerializer<T>
Modifier and Type | Method and Description |
---|---|
PrismSerializer<T> |
context(SerializationContext context)
Sets the context for the serialization operation, containing e.g.
|
PrismSerializer<T> |
definition(ItemDefinition itemDefinition)
Sets the item definition to be used during serialization.
|
PrismSerializer<T> |
options(SerializationOptions options)
Sets the serialization options (part of the context).
|
PrismSerializer<T> |
root(QName elementName)
Sets the name of the root element.
|
T |
serialize(Item<?,?> item)
Serializes given prism item.
|
T |
serialize(JAXBElement<?> value) |
T |
serialize(PrismValue value)
Serializes given prism value (property, reference, or container).
|
T |
serialize(PrismValue value,
QName rootName)
Serializes given prism value (property, reference, or container).
|
T |
serialize(RootXNode xnode) |
T |
serializeAnyData(Object value) |
T |
serializeAnyData(Object value,
QName rootName) |
T |
serializeObjects(List<PrismObject<?>> objects,
QName aggregateElementName) |
T |
serializeRealValue(Object value) |
T |
serializeRealValue(Object value,
QName rootName) |
@NotNull PrismSerializer<T> root(QName elementName)
elementName
- Name of the root element@NotNull PrismSerializer<T> definition(ItemDefinition itemDefinition)
itemDefinition
- @NotNull PrismSerializer<T> context(@Nullable SerializationContext context)
context
- Context to be set.@NotNull PrismSerializer<T> options(@Nullable SerializationOptions options)
options
- Options to be set.@NotNull T serialize(@NotNull Item<?,?> item) throws SchemaException
item
- Item to be serialized.SchemaException
@NotNull T serialize(@NotNull PrismValue value) throws SchemaException
value
- Value to be serialized.SchemaException
@NotNull T serialize(@NotNull PrismValue value, QName rootName) throws SchemaException
value
- Value to be serialized.rootName
- Name of the root element. (Overrides other means of deriving the name.)SchemaException
@NotNull T serialize(@NotNull RootXNode xnode) throws SchemaException
SchemaException
@NotNull T serializeObjects(@NotNull List<PrismObject<?>> objects, QName aggregateElementName) throws SchemaException
SchemaException
T serialize(JAXBElement<?> value) throws SchemaException
SchemaException
T serializeRealValue(Object value) throws SchemaException
SchemaException
T serializeRealValue(Object value, QName rootName) throws SchemaException
SchemaException
T serializeAnyData(Object value) throws SchemaException
SchemaException
T serializeAnyData(Object value, QName rootName) throws SchemaException
SchemaException
Copyright © 2019 Evolveum. All rights reserved.