blob: 32a78c10ba783f480fe0abb6dbfb3ccb13b673b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.onap.sdc.dcae.checker.common;
import org.onap.sdc.dcae.checker.Checker;
import org.onap.sdc.dcae.checker.Construct;
import java.util.Map;
public class ArtifactCommon extends BaseCommon {
private static ArtifactCommon instance;
public synchronized static ArtifactCommon getInstance() {
if (instance == null)
{
instance = new ArtifactCommon();
}
return instance;
}
private ArtifactCommon() {}
public void checkArtifactTypeDefinition(String theName,
Map theDefinition,
Checker.CheckContext theContext) {
theContext.enter(theName, Construct.Artifact);
try {
CheckCommon.getInstance().checkDefinition(theName, theDefinition, theContext);
} finally {
theContext.exit();
}
}
}
|