/
AssociationTypeModel.java
42 lines (29 loc) · 1.33 KB
/
AssociationTypeModel.java
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
32
33
34
35
36
37
38
39
40
41
42
package de.deepamehta.core.model;
import org.codehaus.jettison.json.JSONObject;
import java.util.Set;
import java.util.logging.Logger;
/**
* Collection of the data that makes up an {@link AssociationType}.
*
* @author <a href="mailto:jri@deepamehta.de">Jörg Richter</a>
*/
public class AssociationTypeModel extends TypeModel {
// ---------------------------------------------------------------------------------------------- Instance Variables
private Logger logger = Logger.getLogger(getClass().getName());
// ---------------------------------------------------------------------------------------------------- Constructors
public AssociationTypeModel(String uri, String value, String dataTypeUri) {
super(uri, "dm4.core.assoc_type", new SimpleValue(value), dataTypeUri);
}
// ### TODO: to be completed
public AssociationTypeModel(TopicModel model, String dataTypeUri, Set<IndexMode> indexModes) {
super(model, dataTypeUri, indexModes);
}
public AssociationTypeModel(JSONObject assocTypeModel) {
super(assocTypeModel, "dm4.core.assoc_type");
}
// -------------------------------------------------------------------------------------------------- Public Methods
@Override
public String toString() {
return "association type (" + super.toString() + ")";
}
}