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: import java.util.ArrayList;
12:
13: //project specific classes
14: import org.jfolder.common.UnexpectedSystemException;
15:
16: //other classes
17:
18: public class ConceptTagConstraintTemplate extends
19: ConceptTagConstraintOrTemplate {
20:
21: private ConceptTagConstraintTemplate(String inName,
22: CompoundConceptTagConstraintContext inCctcc) {
23:
24: super (inName, inCctcc.getPreferences());
25: inCctcc.registerTemplate(this );
26: }
27:
28: public final static ConceptTagConstraintTemplate newInstance(
29: String inName, CompoundConceptTagConstraintContext inCctcc) {
30: //
31: return new ConceptTagConstraintTemplate(inName, inCctcc);
32: }
33:
34: public ConceptTagConstraint newConstraint(
35: ConceptTagConstraintHolder inCtconh) {
36:
37: ConceptTagConstraint outValue = ConceptTagConstraint
38: .newInstance(getName(), inCtconh);
39:
40: initializeBaseMembers(outValue);
41:
42: return outValue;
43: }
44: }
|