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.models.impl.metabossmodel.convertors;
016:
017: /** This class contains MetaBoss UML Profile textual constants and utilities to
018: * create MetaBoss profile in the UML model, read MetaBoss profile from the UML model
019: * and navigate the UML model using constraints and hierarchy dictated by profile */
020: public final class UMLStylesheet {
021: /** The name of the standard UML stereotype used to mark packages where profiles are stored */
022: public static final String UMLProfilePackageStereotypeName = "profile";
023: /** The name of the package where MetaBoss UML Profile is stored.
024: * Note that this package should also have a standard UML Profile stereotype */
025: public static final String MetaBossUMLProfilePackageName = "MetaBoss UML Profile";
026: /** The name of the stereotype applicable to UML Model representing the MetaBoss Enterprise model */
027: public static final String EnterpriseModelStereotypeName = "metaboss.model";
028: /** The name of the stereotype applicable to UML Constraints representing a MetaBoss constraint */
029: public static final String ConstraintStereotypeName = "metaboss.constraint";
030: public static final String ConstraintStereotypeTagName_DefaultErrorText = "metaboss.message.default error text";
031: /** The name of the stereotype applicable to UML Packages representing an enterprise */
032: public static final String EnterprisePackageStereotypeName = "metaboss.enterprise";
033: /** The name of the stereotype applicable to UML Packages representing systems */
034: public static final String SystemPackageStereotypeName = "metaboss.system";
035: /** The name of the stereotype applicable to UML Packages representing servicemodules */
036: public static final String ServicemodulePackageStereotypeName = "metaboss.servicemodule";
037: /** The name of the stereotype applicable to UML Packages representing the design library */
038: public static final String DesignLibraryPackageStereotypeName = "metaboss.design library";
039: /** The name of the stereotype applicable to UML Packages representing the data dictionary */
040: public static final String DataDictionaryPackageStereotypeName = "metaboss.data dictionary";
041: /** The name of the stereotype applicable to UML Classes representing an operation return messages */
042: public static final String MessageClassStereotypeName = "metaboss.message";
043: public static final String MessageClassStereotypeTagName_DefaultText = "metaboss.message.default text";
044: public static final String MessageClassStereotypeTagName_Type = "metaboss.message.type";
045: public static final String MessageClassStereotypeTagName_Derived = "derived"; // Using UML native stereotype
046: /** The name of the stereotype applicable to UML Classes representing a data structure */
047: public static final String StructureClassStereotypeName = "metaboss.structure";
048: /** The name of the stereotype applicable to UML Classes representing a service */
049: public static final String ServiceClassStereotypeName = "metaboss.service";
050: /** The name of the stereotype applicable to UML Operations representing a service operation */
051: public static final String ServiceOperationStereotypeName = "metaboss.operation";
052: /** The name of the tag applicable to UML Operations representing a transaction policy kind enumerable value */
053: public static final String ServiceOperationStereotypeTagName_TransactionPolicy = "metaboss.operation.transaction policy";
054: /** The name of the stereotype applicable to UML Classes representing an event subscription */
055: public static final String EventSubscriptionClassStereotypeName = "metaboss.event subscription";
056: /** The name of the tag applicable to EventSussbcription class representing the name of the synchronisation event */
057: public static final String EventSubscriptionClassStereotypeTagName_SynchronisationEventName = "metaboss.event subscription.synchronisation event name";
058: /** The name of the stereotype applicable to UML Classes representing an event subscription operation */
059: public static final String EventSubscriptionOperationStereotypeName = "metaboss.event subscription operation";
060: /** The name of the stereotype applicable to UML Classes representing an event subscription event */
061: public static final String EventSubscriptionEventStereotypeName = "metaboss.event subscription event";
062: /** The name of the stereotype applicable to UML Parameters representing a parameter to the operation, selector, event etc...
063: * The main reason to have this stereotype is to add multiplicity definition. In UML parameters to operations do not seem to have the way to define multiplicity.
064: * As far as MetaBoss is concerned UMLParameter, which does not have this stereotype defines singular (zero or one) multiplicity */
065: public static final String GenericParameterStereotypeName = "metaboss.parameter";
066: /** The name of the tag applicable to UML Parameters representing an "IsArray" boolean flag */
067: public static final String GenericParameterStereotypeTagName_IsArray = "metaboss.parameter.is array";
068: /** The name of the tag applicable to UML Parameters representing a "IsDerived" boolean flag */
069: public static final String GenericParameterStereotypeTagName_Derived = "derived"; // Using UML native stereotype
070: /** The name of the stereotype applicable to UML Packages representing a domain */
071: public static final String DomainPackageStereotypeName = "metaboss.domain";
072: /** The name of the stereotype applicable to UML Classes representing an entity */
073: public static final String EntityClassStereotypeName = "metaboss.entity";
074: public static final String EntityClassStereotypeTagName_Type = "metaboss.entity.type";
075: /** The name of the tag applicable to UML Classes representing Entities. The Tag contains the pural form of the entity name */
076: public static final String EntityClassStereotypeTagName_PluralName = "metaboss.entity.plural name";
077: /** The name of the tag applicable to UML Classes representing Entities. The Tag contains the name of the single element of the primary key. Any number of these tags can be attached */
078: public static final String EntityClassStereotypeTagName_PrimaryKeyElement = "metaboss.entity.primary key element";
079: /** The name of the stereotype applicable to UML Association Ends representing the ends of association between Entities */
080: public static final String AssociationRoleStereotypeName = "metaboss.association role";
081: /** The name of the tag applicable to UML Association Ends representing the ends of association between Entities. The Tag contains the pural form of the name of the role the entity plays in this association */
082: public static final String AssociationRoleStereotypeTagName_PluralName = "metaboss.association role.plural name";
083: /** The name of the stereotype applicable to UML Attributes representing an entity attribute */
084: public static final String EntityAttributeStereotypeName = "metaboss.entity attribute";
085: /** The name of the tag applicable to UML Attributes representing an entity attribute */
086: public static final String EntityAttributeStereotypeTagName_Derived = "derived"; // Using UML native stereotype
087: /** The name of the tag applicable to UML Attributes representing an entity attribute */
088: public static final String EntityAttributeStereotypeTagName_Type = "metaboss.entity attribute.type";
089: /** The name of the tag applicable to UML Attributes representing an entity attribute */
090: public static final String EntityAttributeStereotypeTagName_IsUsedForOrdering = "metaboss.entity attribute.is used for ordering";
091: /** The name of the stereotype applicable to UML Operation which represents an entity selector */
092: public static final String EntitySelectorStereotypeName = "metaboss.entity selector";
093: /** The name of the tag applicable to UML Operation which represents an entity selector. The Tag contains the cardinality of selector return (ie. does it return collection of entity instances or a single entity instance). */
094: public static final String EntitySelectorStereotypeTagName_Cardinality = "metaboss.entity selector.cardinality";
095: /** The name of the tag applicable to UML Operation which represents an entity selector. The Tag contains the text of the SQL Query in the "default" SQL dialect. */
096: public static final String EntitySelectorStereotypeTagName_DefaultSQLQuery = "metaboss.entity selector.default sql query";
097: /** The name of the tag applicable to UML Operation which represents an entity selector. The Tag contains the boolean value if selector is implicit. */
098: public static final String EntitySelectorStereotypeTagName_Derived = "derived"; // Using UML native stereotype
099: /** The name of the stereotype applicable to UML Classes representing the Type Templates */
100: public static final String TypeTemplateClassStereotypeName = "metaboss.type template";
101: /** The name of the stereotype applicable to UML DataValues representing a concrete argument to the template etc...
102: * The main reason to have this stereotype is to add value tag. In UML Data Values do not seem to have the way to actualy set value. */
103: public static final String GenericArgumentStereotypeName = "metaboss.argument";
104: /** The name of the tag applicable to UML DataValues representing actual value of the argument */
105: public static final String GenericArgumentStereotypeTagName_Value = "metaboss.argument.value";
106: /** The name of the name applicable to UML Models representing the MetaBoss models */
107: public static final String mModelName = "MetaBoss Enterprise Model";
108: /** The name of the package where public interfaces of the system are located */
109: public static final String mSystemPublicInterfacesPackageName = "Public Interfaces";
110: /** The name of the package where servicemodules of the system are located */
111: public static final String mSystemServicemodulesPackageName = "Servicemodules";
112: /** The name of the package where datadictionary of the system are located */
113: public static final String mSystemDataDictionaryPackageName = "DataDictionary";
114: /** The name of the package where implementation details of the system are located */
115: public static final String mSystemImplementationComponentsPackageName = "Implementation Components";
116: /** The name of the package where servicemodule messages are located */
117: public static final String mServicemoduleMessagesPackageName = "Messages";
118: /** The name of the package where servicemodule structures are located */
119: public static final String mServicemoduleStructuresPackageName = "Structures";
120: /** The name of the package where servicemodule services are located */
121: public static final String mServicemoduleServicesPackageName = "Services";
122: /** The name of the package where servicemodule event subscriptions are located */
123: public static final String mServicemoduleEventSubscriptionsPackageName = "Event Subscriptions";
124: }
|