1 package org.onap.sdc.dcae.checker;
4 import org.onap.sdc.common.onaplog.OnapLoggerDebug;
5 import org.onap.sdc.common.onaplog.OnapLoggerError;
9 import java.net.MalformedURLException;
14 * Represents a 'container' of (yaml) TOSCA documents
16 public abstract class Repository {
18 protected OnapLoggerError errLogger = OnapLoggerError.getInstance();
19 protected OnapLoggerDebug debugLogger = OnapLoggerDebug.getInstance();
23 protected URI rootURI;
24 protected Map credential; //TOSCA type tosca.datatype.Credential
26 public Repository(String theName, URI theRoot) {
28 this.rootURI = theRoot;
31 public String getName() {
35 public URI getRoot() {
40 public abstract Iterable<Target> targets();
43 public abstract Target resolve(URI theURI);
46 public String toString() {
47 return "Repository " + this.name + " at " + this.rootURI;