Class BeanMarshaller
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.marshaller.BeanMarshaller
-
- All Implemented Interfaces:
SchemaRegistry.InvalidationListener
public class BeanMarshaller extends Object implements SchemaRegistry.InvalidationListener
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_PLACEHOLDER
-
Constructor Summary
Constructors Constructor Description BeanMarshaller(@NotNull PrismContext prismContext, @NotNull PrismBeanInspector inspector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canProcess(@NotNull Class<?> clazz)
QName
determineTypeForClass(Class<?> clazz)
@NotNull PrismContext
getPrismContext()
void
invalidate()
@Nullable XNodeImpl
marshall(@Nullable Object inputBean, @Nullable SerializationContext ctx)
<T> @Nullable XNodeImpl
marshall(T bean)
<T> MapXNodeImpl
marshalProtectedDataType(Object o, SerializationContext sc)
void
revive(Object bean, PrismContext prismContext)
void
visit(Object bean, Handler<Object> handler)
-
-
-
Field Detail
-
DEFAULT_PLACEHOLDER
public static final String DEFAULT_PLACEHOLDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BeanMarshaller
public BeanMarshaller(@NotNull @NotNull PrismContext prismContext, @NotNull @NotNull PrismBeanInspector inspector)
-
-
Method Detail
-
invalidate
public void invalidate()
- Specified by:
invalidate
in interfaceSchemaRegistry.InvalidationListener
-
marshall
@Nullable public <T> @Nullable XNodeImpl marshall(@Nullable T bean) throws SchemaException
- Throws:
SchemaException
-
marshall
@Nullable public @Nullable XNodeImpl marshall(@Nullable @Nullable Object inputBean, @Nullable @Nullable SerializationContext ctx) throws SchemaException
- Throws:
SchemaException
-
revive
public void revive(Object bean, PrismContext prismContext) throws SchemaException
- Throws:
SchemaException
-
marshalProtectedDataType
public <T> MapXNodeImpl marshalProtectedDataType(Object o, SerializationContext sc) throws SchemaException
- Throws:
SchemaException
-
getPrismContext
@NotNull public @NotNull PrismContext getPrismContext()
-
canProcess
public boolean canProcess(@NotNull @NotNull Class<?> clazz)
-
-