Package org.gedcomx.test
Class Snippet
java.lang.Object
org.gedcomx.test.Snippet
- All Implemented Interfaces:
Serializable,SerializationProcessListener
A code snippet.
- Author:
- Mike Gardiner and Ryan Heaton
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJson()The json code associated with this snippet.getXml()The xml code associated with this snippet.voidjsonProcessed(Object reference, Class<?> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper, String json) voidsetDescription(String description) voidThe json code associated with this snippet.voidThe xml code associated with this snippet.voidxmlProcessed(Object reference, Class<?> instanceClass, jakarta.xml.bind.JAXBContext context, String xml)
-
Constructor Details
-
Snippet
public Snippet()The default constructor -
Snippet
-
Snippet
-
Snippet
-
-
Method Details
-
getXml
The xml code associated with this snippet.- Returns:
- The xml code associated with this snippet.
-
setXml
The xml code associated with this snippet.- Parameters:
xml- The xml code associated with this snippet.
-
xmlProcessed
public void xmlProcessed(Object reference, Class<?> instanceClass, jakarta.xml.bind.JAXBContext context, String xml) - Specified by:
xmlProcessedin interfaceSerializationProcessListener
-
getJson
The json code associated with this snippet.- Returns:
- The json code associated with this snippet.
-
setJson
The json code associated with this snippet.- Parameters:
json- The json code associated with this snippet.
-
jsonProcessed
public void jsonProcessed(Object reference, Class<?> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper, String json) - Specified by:
jsonProcessedin interfaceSerializationProcessListener
-
getDescription
- Returns:
- A description
-
setDescription
- Parameters:
description- - A description
-