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.entity;
09:
10: //base classes
11: import java.io.PrintStream;
12: import java.io.PrintWriter;
13:
14: //project specific classes
15: import org.jfolder.common.tagging.ConceptTagCharacteristic;
16:
17: //other classes
18:
19: public class SystemEntityUpdatesContext implements SystemEntityCommon {
20:
21: //
22: private SystemEntityUpdates parentSeu = null;
23: private boolean align = false;
24: //private SecurityAudit sa = null;
25: //
26: private ConceptTagCharacteristic parentCtchar = null;
27: private int parentCtcharIndex = 0;
28:
29: private SystemEntityUpdatesContext(SystemEntityUpdates inParentSeu,
30: boolean inAlign,
31: //SecurityAudit inSa,
32: ConceptTagCharacteristic inCtchar, int inIndex) {
33:
34: //
35: this .parentSeu = inParentSeu;
36: this .align = inAlign;
37: //this.sa = inSa;
38: //
39: this .parentCtchar = inCtchar;
40: this .parentCtcharIndex = 0;
41: }
42:
43: public final static SystemEntityUpdatesContext newInstance(
44: SystemEntityUpdates inParentSeu, boolean inAlign,
45: //SecurityAudit inSa,
46: ConceptTagCharacteristic inCtchar, int inIndex) {
47:
48: SystemEntityUpdatesContext outValue = null;
49:
50: outValue = new SystemEntityUpdatesContext(inParentSeu, inAlign,
51: inCtchar, inIndex);
52:
53: return outValue;
54: }
55:
56: public final static SystemEntityUpdatesContext newInstance(
57: SystemEntityUpdates inParentSeu,
58: SystemEntityUpdatesContext inSeuc,
59: //SecurityAudit inSa,
60: ConceptTagCharacteristic inCtchar, int inIndex) {
61:
62: SystemEntityUpdatesContext outValue = null;
63:
64: outValue = new SystemEntityUpdatesContext(inParentSeu, inSeuc
65: .isAlign(), inCtchar, inIndex);
66:
67: return outValue;
68: }
69:
70: public boolean isParentPresent() {
71: return (this .parentSeu != null);
72: }
73:
74: public SystemEntityUpdates getParent() {
75: return this .parentSeu;
76: }
77:
78: public boolean isAlign() {
79: return this .align;
80: }
81:
82: public ConceptTagCharacteristic getParentCharacteristic() {
83: return this .parentCtchar;
84: }
85:
86: public int getParentCharacteristicIndex() {
87: return this .parentCtcharIndex;
88: }
89:
90: //public SecurityAudit getSecurityAudit() {
91: // return this.sa;
92: //}
93: }
|