summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/lifecycle/instance/predefined/entitycreation/Outcome.java
blob: 9ab57936b95af754266be8b4bcfa10a6e82ff290 (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
package com.c2kernel.lifecycle.instance.predefined.entitycreation;

import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.utils.Resource;

public class Outcome {
	public String schema, viewname, path, data;
	public int version;
	
	public Outcome() {
	}
	
	public Outcome(String schema, int version, String viewname, String path) {
		super();
		this.schema = schema;
		this.version = version;
		this.viewname = viewname;
		this.path = path;
	}
	
	public String getData(String ns) throws ObjectNotFoundException {
		if (data == null)
			data = Resource.getTextResource(ns, path);
		return data;
	}

}