01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.common.tagging;
09:
10: //base classes
11:
12: //project specific classes
13:
14: //other classes
15:
16: class AbstractConceptTagConstraintContext {
17:
18: private ConceptTagPreferences ctp = null;
19: private ConceptTagConstraintOrTemplate ctcot = null;
20:
21: protected AbstractConceptTagConstraintContext(
22: ConceptTagConstraintOrTemplate inCtcot) {
23:
24: inCtcot.registerConstraintContext(this );
25: this .ctp = inCtcot.getPreferences();
26: this .ctcot = inCtcot;
27: }
28:
29: public ConceptTagPreferences getPreferences() {
30: return this .ctp;
31: }
32:
33: protected ConceptTagConstraintOrTemplate getConstraintOrTemplate() {
34: return this.ctcot;
35: }
36: }
|