001: // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
002: // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
003: // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
004: // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
005: // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
006: // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
007: // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
008: // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
009: // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
010: // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
011: // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
012: // POSSIBILITY OF SUCH DAMAGE.
013: //
014: // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
015: package com.metaboss.sdlctools.services.codegenerationstylesheet;
016:
017: /** This structure contains the stylesheet (set of names) pertained to the particular datadictionary */
018: public final class STDataDictionaryStylesheet {
019: private String mDataDictionaryRef = null;
020: private String mNormalisedName = null;
021: private String mNormalisedTypedName = null;
022: private String mAdapterClassName = null;
023: private String mCataloguePathToTop = null;
024: private String mCataloguePathFromTop = null;
025: private String mPackageName = null;
026: private String mAdaptersRootPackageName;
027: private String mAdapterRootPackageDir;
028: private String mDataDictionaryModuleName = null;
029: private String mGenericStringStructuresAdapterPackageName;
030: private String mGenericSimplifiedStringStructuresAdapterPackageName;
031: private String mGenericDomElementsAdapterPackageName;
032: private String mGenericXmlStringsAdapterPackageName;
033: private String mNamespaceURI;
034:
035: /** Getter for the unique identifier of the corresponding model element */
036: public String getDataDictionaryRef() {
037: return mDataDictionaryRef;
038: }
039:
040: /** Getter for the unique identifier of the corresponding model element */
041: public void setDataDictionaryRef(String pDataDictionaryRef) {
042: mDataDictionaryRef = pDataDictionaryRef;
043: }
044:
045: /** Getter for the normalised name of the element. Normalised name is a
046: * "safe to use in computing" kind of name it must be a single word consisting of
047: * the most basic set of characters (e.g. letters, numbers, underscores).
048: * Note that this name may not be unique in the namespace of the parent element, because
049: * sibling element of another type may have the same name. Consider using NormalisedTypedName to get more unique name */
050: public String getNormalisedName() {
051: return mNormalisedName;
052: }
053:
054: /** Setter for the normalised name of the element. Normalised name is a
055: * "safe to use in computing" kind of name it must be a single word consisting of
056: * the most basic set of characters (e.g. letters, numbers, underscores)
057: * Note that this name may not be unique in the namespace of the parent element, because
058: * sibling element of another type may have the same name. Consider using NormalisedTypedName to get more unique name */
059: public void setNormalisedName(String pNormalisedName) {
060: mNormalisedName = pNormalisedName;
061: }
062:
063: /** Getter for the normalised typed name of the element.
064: * Normalised typed name is similar to the normalised name, but it is derived
065: * from type name and element name which guarantees that this name is unique within parent element scope. */
066: public String getNormalisedTypedName() {
067: return mNormalisedTypedName;
068: }
069:
070: /** Setter for the normalised typed name of the element.
071: * Normalised typed name is similar to the normalised name, but it is derived
072: * from type name and element name which guarantees that this name is unique within parent element scope. */
073: public void setNormalisedTypedName(String pNormalisedTypedName) {
074: mNormalisedTypedName = pNormalisedTypedName;
075: }
076:
077: /** Getter for the relative path to the top from the catalogue where information related to this object is located.
078: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
079: * It is used for things like help files, documentation directory tree etc. */
080: public String getCataloguePathToTop() {
081: return mCataloguePathToTop;
082: }
083:
084: /** Getter for the relative path from the top to the catalogue where information related to this object is located.
085: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
086: * It is used for things like help files, documentation directory tree etc. */
087: public String getCataloguePathFromTop() {
088: return mCataloguePathFromTop;
089: }
090:
091: /** Setter for the relative path to the top from the catalogue where information related to this object is located.
092: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
093: * It is used for things like help files, documentation directory tree etc. */
094: public void setCataloguePathToTop(String pCataloguePathToTop) {
095: mCataloguePathToTop = pCataloguePathToTop;
096: }
097:
098: /** Setter for the relative path from the top to the catalogue where information related to this object is located
099: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
100: * It is used for things like help files, documentation directory tree etc. */
101: public void setCataloguePathFromTop(String pCataloguePathFromTop) {
102: mCataloguePathFromTop = pCataloguePathFromTop;
103: }
104:
105: /** Getter for the package name where contents of this data dictionary are located */
106: public String getPackageName() {
107: return mPackageName;
108: }
109:
110: /** Setter for the package name where contents of this data dictionary are located */
111: public void setPackageName(String pPackageName) {
112: mPackageName = pPackageName;
113: }
114:
115: /** Getter for the name of the package for the adapters of the dictionary types */
116: public String getAdaptersRootPackageName() {
117: return mAdaptersRootPackageName;
118: }
119:
120: /** Setter for the name of the package for the adapters of the dictionary types */
121: public void setAdaptersRootPackageName(
122: String pAdaptersRootPackageName) {
123: mAdaptersRootPackageName = pAdaptersRootPackageName;
124: }
125:
126: /** Getter for the standard normalised strings only adapter package name. */
127: public String getGenericStringStructuresAdapterPackageName() {
128: return mGenericStringStructuresAdapterPackageName;
129: }
130:
131: /** Setter for the standard normalised strings only adapter package name. */
132: public void setGenericStringStructuresAdapterPackageName(
133: String pGenericStringStructuresAdapterPackageName) {
134: mGenericStringStructuresAdapterPackageName = pGenericStringStructuresAdapterPackageName;
135: }
136:
137: /** Getter for the standard xml adapter package name */
138: public String getGenericDomElementsAdapterPackageName() {
139: return mGenericDomElementsAdapterPackageName;
140: }
141:
142: /** Setter for the standard xml only adapter package name */
143: public void setGenericDomElementsAdapterPackageName(
144: String pGenericDomElementsAdapterPackageName) {
145: mGenericDomElementsAdapterPackageName = pGenericDomElementsAdapterPackageName;
146: }
147:
148: /** Getter for the standard xml strings adapter package name */
149: public String getGenericXmlStringsAdapterPackageName() {
150: return mGenericXmlStringsAdapterPackageName;
151: }
152:
153: /** Setter for the standard xml strings only adapter package name */
154: public void setGenericXmlStringsAdapterPackageName(
155: String pGenericXmlStringsAdapterPackageName) {
156: mGenericXmlStringsAdapterPackageName = pGenericXmlStringsAdapterPackageName;
157: }
158:
159: /** Getter for the simplified strings only adapter package name.
160: * Simplified here means that this adapter uses outer structures (with concatenated service + operation names) to manage the scope of operation input and output structures. */
161: public String getGenericSimplifiedStringStructuresAdapterPackageName() {
162: return mGenericSimplifiedStringStructuresAdapterPackageName;
163: }
164:
165: /** Setter for the standard simplified strings only adapter package name.
166: * Simplified here means that this adapter uses outer structures (with concatenated service + operation names) to manage the scope of operation input and output structures. */
167: public void setGenericSimplifiedStringStructuresAdapterPackageName(
168: String pGenericSimplifiedStringStructuresAdapterPackageName) {
169: mGenericSimplifiedStringStructuresAdapterPackageName = pGenericSimplifiedStringStructuresAdapterPackageName;
170: }
171:
172: /** Getter for the standard xml schema namespace */
173: public String getNamespaceURI() {
174: return mNamespaceURI;
175: }
176:
177: /** Setter for the generic xml name space URI */
178: public void setNamespaceURI(String pNamespaceURI) {
179: mNamespaceURI = pNamespaceURI;
180: }
181:
182: /** Getter for the name of the class, which is an adaptor / bridge between this datadictionary
183: * and some other technology. Note that this class may reside in any package as chosen by generator
184: * (in fact there will most probably be more than one implementation each in different package) */
185: public String getAdapterClassName() {
186: return mAdapterClassName;
187: }
188:
189: /** Setter for the name of the class, which is an adaptor / bridge between this datadictionary
190: * and some other technology. Note that this class may reside in any package as chosen by generator
191: * (in fact there will most probably be more than one implementation each in different package) */
192: public void setAdapterClassName(String pAdapterClassName) {
193: mAdapterClassName = pAdapterClassName;
194: }
195:
196: /** Getter for the name of the module where data dictionaries for whole enterprise are located */
197: public String getDataDictionaryModuleName() {
198: return mDataDictionaryModuleName;
199: }
200:
201: /** Setter for the name of the module where data dictionaries for whole enterprise are located */
202: public void setDataDictionaryModuleName(
203: String pDataDictionaryModuleName) {
204: mDataDictionaryModuleName = pDataDictionaryModuleName;
205: }
206:
207: /** Getter for the name of the directory for the adapters of the datadictionary.
208: * Directory is formed similar to package, but directory separators are used intead of dots */
209: public String getAdapterRootPackageDir() {
210: return mAdapterRootPackageDir;
211: }
212:
213: /** Setter for the name of the directory for the adapters of the datadictionary
214: * Directory is formed similar to package, but directory separators are used intead of dots */
215: public void setAdapterRootPackageDir(String pAdapterRootPackageDir) {
216: mAdapterRootPackageDir = pAdapterRootPackageDir;
217: }
218: }
|