001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.test.umllib;
043:
044: public enum ElementTypes {
045: /*
046: string passed to constructor is {elementGraphObject}.getPresentationElement().getFirstSubject().getElementType() string
047: */
048: COMPONENT("Component"), CLASS("Class"), TEMPLATE_CLASS("Class"), DERIVATION_CLASSIFIER(
049: "DerivationClassifier"), INTERFACE("Interface"), PACKAGE(
050: "Package"), DEPLOYMENT_SPECIFICATION(
051: "DeploymentSpecification"), BOUNDARY_CLASS("Class"), CONTROL_CLASS(
052: "Class"), ENTITY_CLASS("Class"), ENUMERATION("Enumeration"), ASSEMBLY_CONNECTOR(
053: "Interface"), NODE("Node"), DATATYPE("DataType"), ARTIFACT(
054: "Artifact"), UTILITY_CLASS("Class"), USE_CASE("UseCase"),
055: // represents Actor lifeline symbol on interaction diagrams (COD, SQD)
056: ACTOR_LIFELINE("Lifeline"),
057: // represents lifeline symbol on interaction diagrams (COD, SQD)
058: LIFELINE("Lifeline"),
059: // represents Actor symbol on all non-interaction diagrams (CLD, USD, comp)
060: ACTOR("Actor"),
061: // represents Collaboration Lifiline symbol on CLD
062: COLLABORATION_LIFELINE("Lifeline"), COMMENT("Comment"), LINK_COMMENT(
063: "Comment"), INVOCATION("InvocationNode"), DECISION(
064: "DecisionMergeNode"), VERTICAL_FORK("JoinForkNode"), HORIZONTAL_FORK(
065: "JoinForkNode"), ACTIVITY_GROUP("ComplexActivityGroup"), INITIAL_NODE(
066: "InitialNode"), ACTIVITY_FINAL_NODE("ActivityFinalNode"), FLOW_FINAL(
067: "FlowFinalNode"), PARAMETER_USAGE("ParameterUsageNode"), DATA_STORE(
068: "DataStoreNode"), SIGNAL("SignalNode"), PARTITION(
069: "ActivityPartition"), CREATE_MESSAGE("CreateMessage"), COMBINED_FRAGMENT(
070: "CombinedFragment"), EXPRESSION("Expression"), DESIGN_PATTERN(
071: "Collaboration"), ROLE("PartFacade"),
072: //component-specific
073: PORT("Port"),
074: // class diagram Palette specific
075: ALIASED("AliasedType"), INTERFACE_ROLE("PartFacade"), ACTOR_ROLE(
076: "PartFacade"), CLASS_ROLE("PartFacade"), USE_CASE_ROLE(
077: "PartFacade"), ROLE_BINDING("PartFacade"), ANY("Any"),
078:
079: //state diagram specific
080: SIMPLE_STATE("State"), INITIAL_STATE("PseudoState"), FINAL_STATE(
081: "FinalState"), ABORTED_FINAL_STATE("FinalState"), VERTICAL_JOIN_MERGE(
082: "PseudoState"), HORIZONTAL_JOIN_MERGE("PseudoState"), COMPOSITE_STATE(
083: "State"), CHOICE_PSEUDO_STATE("PseudoState"), SHALLOW_HISTORY_STATE(
084: "PseudoState"), DEEP_HISTORY_STATE("PseudoState"), ENTRY_POINT_STATE(
085: "PseudoState"), JUNCTION_POINT_STATE("PseudoState"), SUBMACHINE_STATE(
086: "State");
087:
088: private String val = "";
089:
090: private ElementTypes(String val) {
091: this .val = val;
092: }
093:
094: /**
095: *
096: * @return
097: */
098: public String toString() {
099: return val;
100: }
101:
102: }
|