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 namespace */
018: public final class STNamespaceStylesheet {
019: private String mNamespaceRef = 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 mDictionarySubPackageName;
027: private String mNamespaceURI;
028:
029: /** Getter for the unique identifier of the corresponding model element */
030: public String getNamespaceRef() {
031: return mNamespaceRef;
032: }
033:
034: /** Getter for the unique identifier of the corresponding model element */
035: public void setNamespaceRef(String pNamespaceRef) {
036: mNamespaceRef = pNamespaceRef;
037: }
038:
039: /** Getter for the normalised name of the element. Normalised name is a
040: * "safe to use in computing" kind of name it must be a single word consisting of
041: * the most basic set of characters (e.g. letters, numbers, underscores).
042: * Note that this name may not be unique in the namespace of the parent element, because
043: * sibling element of another type may have the same name. Consider using NormalisedTypedName to get more unique name */
044: public String getNormalisedName() {
045: return mNormalisedName;
046: }
047:
048: /** Setter for the normalised name of the element. Normalised name is a
049: * "safe to use in computing" kind of name it must be a single word consisting of
050: * the most basic set of characters (e.g. letters, numbers, underscores)
051: * Note that this name may not be unique in the namespace of the parent element, because
052: * sibling element of another type may have the same name. Consider using NormalisedTypedName to get more unique name */
053: public void setNormalisedName(String pNormalisedName) {
054: mNormalisedName = pNormalisedName;
055: }
056:
057: /** Getter for the normalised typed name of the element.
058: * Normalised typed name is similar to the normalised name, but it is derived
059: * from type name and element name which guarantees that this name is unique within parent element scope. */
060: public String getNormalisedTypedName() {
061: return mNormalisedTypedName;
062: }
063:
064: /** Setter for the normalised typed name of the element.
065: * Normalised typed name is similar to the normalised name, but it is derived
066: * from type name and element name which guarantees that this name is unique within parent element scope. */
067: public void setNormalisedTypedName(String pNormalisedTypedName) {
068: mNormalisedTypedName = pNormalisedTypedName;
069: }
070:
071: /** Getter for the relative path to the top from the catalogue where information related to this object is located.
072: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
073: * It is used for things like help files, documentation directory tree etc. */
074: public String getCataloguePathToTop() {
075: return mCataloguePathToTop;
076: }
077:
078: /** Getter for the relative path from the top to the catalogue where information related to this object is located.
079: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
080: * It is used for things like help files, documentation directory tree etc. */
081: public String getCataloguePathFromTop() {
082: return mCataloguePathFromTop;
083: }
084:
085: /** Setter for the relative path to the top from the catalogue where information related to this object is located.
086: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
087: * It is used for things like help files, documentation directory tree etc. */
088: public void setCataloguePathToTop(String pCataloguePathToTop) {
089: mCataloguePathToTop = pCataloguePathToTop;
090: }
091:
092: /** Setter for the relative path from the top to the catalogue where information related to this object is located
093: * Catalogue is a directory tree where each node is named as <owner type>_<owner normalised name>.
094: * It is used for things like help files, documentation directory tree etc. */
095: public void setCataloguePathFromTop(String pCataloguePathFromTop) {
096: mCataloguePathFromTop = pCataloguePathFromTop;
097: }
098:
099: /** Getter for the package name where contents of this Namespace are located */
100: public String getPackageName() {
101: return mPackageName;
102: }
103:
104: /** Setter for the package name where contents of this Namespace are located */
105: public void setPackageName(String pPackageName) {
106: mPackageName = pPackageName;
107: }
108:
109: /** Getter for the name of the subpackage of the dictionary package for this namespace */
110: public String getDictionarySubPackageName() {
111: return mDictionarySubPackageName;
112: }
113:
114: /** Setter for the name of the subpackage of the dictionary package for this namespace */
115: public void setDictionarySubPackageName(
116: String pDictionarySubPackageName) {
117: mDictionarySubPackageName = pDictionarySubPackageName;
118: }
119:
120: /** Getter for the standard xml schema namespace */
121: public String getNamespaceURI() {
122: return mNamespaceURI;
123: }
124:
125: /** Setter for the generic xml name space URI */
126: public void setNamespaceURI(String pNamespaceURI) {
127: mNamespaceURI = pNamespaceURI;
128: }
129:
130: /** Getter for the name of the class, which is an adaptor / bridge between this namespace
131: * and some other technology. Note that this class may reside in any package as chosen by generator
132: * (in fact there will most probably be more than one implementation each in different package) */
133: public String getAdapterClassName() {
134: return mAdapterClassName;
135: }
136:
137: /** Setter for the name of the class, which is an adaptor / bridge between this namespace
138: * and some other technology. Note that this class may reside in any package as chosen by generator
139: * (in fact there will most probably be more than one implementation each in different package) */
140: public void setAdapterClassName(String pAdapterClassName) {
141: mAdapterClassName = pAdapterClassName;
142: }
143: }
|