diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-08-29 04:26:28 -0700 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-08-29 04:26:28 -0700 |
commit | b339fbb09781e0761bec61ad37126d6241133d70 (patch) | |
tree | 399c68c429be09c5f2fb7a99b8ed06c446cfe362 /src/main/java/org | |
parent | 180d25d8a83bd521f82441b5caa68e9153e86d98 (diff) |
Rework the javadoc
The javadoc was not correct for this file according to Checkstyle
Change-Id: I608774f32816f48ec86143888cf7bd9368aad1df
Issue-Id: CLAMP-43
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/onap/clamp/clds/client/req/SdcReq.java | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java b/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java index 08e196b7c..3c16ce60b 100644 --- a/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java +++ b/src/main/java/org/onap/clamp/clds/client/req/SdcReq.java @@ -62,12 +62,22 @@ public class SdcReq { protected static final EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger(); /** + * Format the Blueprint from a Yaml + * * @param refProp + * The RefProp instance containing the Clds config * @param prop - * @return + * The ModelProperties describing the clds model + * @param docText + * The Yaml file that must be converted + * + * @return A String containing the BluePrint * @throws JsonParseException + * In case of issues * @throws JsonMappingException + * In case of issues * @throws IOException + * In case of issues */ public static String formatBlueprint(RefProp refProp, ModelProperties prop, String docText) throws JsonParseException, JsonMappingException, IOException { @@ -346,7 +356,14 @@ public class SdcReq { return "Basic " + idPw; } - private static String getYamlvalue(String docText) throws IOException { + /** + * Method to get yaml/template properties value from json + * + * @param docText + * @return + * @throws IOException + */ + public static String getYamlvalue(String docText) throws IOException { ObjectMapper objectMapper = new ObjectMapper(); String yamlFileValue = ""; ObjectNode root = objectMapper.readValue(docText, ObjectNode.class); |