public class RepresentationUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RepresentationUtils.ResourceRep |
Constructor and Description |
---|
RepresentationUtils() |
Modifier and Type | Method and Description |
---|---|
static ArtifactDefinition |
convertJsonToArtifactDefinition(String content,
Class<ArtifactDefinition> clazz) |
static <T> T |
fromRepresentation(String json,
Class<T> clazz) |
static <T> Object |
toRepresentation(T elementToRepresent)
Build Representation of given Object
|
public static <T> Object toRepresentation(T elementToRepresent) throws IOException, org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException
elementToRepresent
- IOException
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
public static ArtifactDefinition convertJsonToArtifactDefinition(String content, Class<ArtifactDefinition> clazz)
Copyright © 2017. All rights reserved.