public class Snippet extends Object implements Serializable, SerializationProcessListener
| Constructor and Description |
|---|
Snippet()
The default constructor
|
Snippet(String description) |
Snippet(String xml,
String json) |
Snippet(String xml,
String json,
String description) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getJson()
The json code associated with this snippet.
|
String |
getXml()
The xml code associated with this snippet.
|
void |
jsonProcessed(Object reference,
Class<?> instanceClass,
com.fasterxml.jackson.databind.ObjectMapper mapper,
String json) |
void |
setDescription(String description) |
void |
setJson(String json)
The json code associated with this snippet.
|
void |
setXml(String xml)
The xml code associated with this snippet.
|
void |
xmlProcessed(Object reference,
Class<?> instanceClass,
JAXBContext context,
String xml) |
public Snippet()
public Snippet(String description)
public String getXml()
public void setXml(String xml)
xml - The xml code associated with this snippet.public void xmlProcessed(Object reference, Class<?> instanceClass, JAXBContext context, String xml)
xmlProcessed in interface SerializationProcessListenerpublic String getJson()
public void setJson(String json)
json - The json code associated with this snippet.public void jsonProcessed(Object reference, Class<?> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper, String json)
jsonProcessed in interface SerializationProcessListenerpublic String getDescription()
public void setDescription(String description)
description - - A descriptionCopyright © 2021. All rights reserved.