Class AbstractWriter
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.lex.json.writer.AbstractWriter
-
- Direct Known Subclasses:
JsonWriter
,YamlWriter
public abstract class AbstractWriter extends Object
Writes XNode into JSON/YAML.
-
-
Constructor Summary
Constructors Constructor Description AbstractWriter(@NotNull SchemaRegistry schemaRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XNodeDefinition
getSchema()
@NotNull String
write(@NotNull RootXNode root, SerializationContext prismSerializationContext)
@NotNull String
write(@NotNull XNode xnode, @NotNull QName rootElementName, SerializationContext prismSerializationContext)
@NotNull String
write(@NotNull List<RootXNodeImpl> roots, @Nullable SerializationContext prismSerializationContext)
-
-
-
Constructor Detail
-
AbstractWriter
public AbstractWriter(@NotNull @NotNull SchemaRegistry schemaRegistry)
-
-
Method Detail
-
getSchema
public XNodeDefinition getSchema()
-
write
@NotNull public @NotNull String write(@NotNull @NotNull XNode xnode, @NotNull @NotNull QName rootElementName, SerializationContext prismSerializationContext) throws SchemaException
- Throws:
SchemaException
-
write
@NotNull public @NotNull String write(@NotNull @NotNull RootXNode root, SerializationContext prismSerializationContext) throws SchemaException
- Throws:
SchemaException
-
write
@NotNull public @NotNull String write(@NotNull @NotNull List<RootXNodeImpl> roots, @Nullable @Nullable SerializationContext prismSerializationContext) throws SchemaException
- Throws:
SchemaException
-
-