Code refactoring in restconf client yang serialisers.

1. logging the exception when handling underscore in yang serialisers
2. Refactor code to not nest more than 3 if/for statements
3. Throw SvcLogicException instead of generic 
4. Reduce switch case number of lines from 8 to at most 5

Issue-ID: CCSDK-1236
Change-Id: Ic02ba424c2d1748d071e38d25ae159f5d8bd6451
Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2 files changed
tree: 6cb2645d1fee627b7bcf26c60a291130bad4aa1b
  1. artifacts/
  2. features/
  3. grToolkit/
  4. properties-node/
  5. restapi-call-node/
  6. restconf-client/
  7. sshapi-call-node/
  8. template-node/
  9. .gitignore
  10. INFO.yaml
  11. LICENSE.txt
  12. pom.xml
  13. README.md
  14. version.properties
README.md

This source repository contains the code for the CCSDK plugins.

To compile this code:

  1. Make sure your local Maven settings file ($HOME/.m2/settings.xml) contains references to the ONAP repositories and OpenDaylight repositories. See example-settings.xml for an example.

  2. To compile, run "mvn clean install".

PropertyNode:

  1. Takes any file then parses it and puts it to the context memory for Directed Graphs access.

  2. Various parameters it takes:

    public String fileName; //Name of the file to put to properties

    public String contextPrefix; //Any prefix to add for your keys in the Properties context

    public Set listNameList;//only applies to XML based file parsing, you can use this to exclude a specific tree to be put to context.

    public boolean fileBasedParsing;//enable to do a file based parsing, currently supports JSON and XML.