001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: /**
021: *
022: */package org.netbeans.modules.bpel.model.xam;
023:
024: import org.netbeans.modules.bpel.model.api.AssignChild;
025: import org.netbeans.modules.bpel.model.api.BooleanExpr;
026: import org.netbeans.modules.bpel.model.api.BpelEntity;
027: import org.netbeans.modules.bpel.model.api.Catch;
028: import org.netbeans.modules.bpel.model.api.CatchAll;
029: import org.netbeans.modules.bpel.model.api.CompensationHandler;
030: import org.netbeans.modules.bpel.model.api.CompletionCondition;
031: import org.netbeans.modules.bpel.model.api.Condition;
032: import org.netbeans.modules.bpel.model.api.CorrelationContainer;
033: import org.netbeans.modules.bpel.model.api.CorrelationSetContainer;
034: import org.netbeans.modules.bpel.model.api.Documentation;
035: import org.netbeans.modules.bpel.model.api.Else;
036: import org.netbeans.modules.bpel.model.api.ElseIf;
037: import org.netbeans.modules.bpel.model.api.EventHandlers;
038: import org.netbeans.modules.bpel.model.api.ExtendableActivity;
039: import org.netbeans.modules.bpel.model.api.ExtensionContainer;
040: import org.netbeans.modules.bpel.model.api.FaultHandlers;
041: import org.netbeans.modules.bpel.model.api.FinalCounterValue;
042: import org.netbeans.modules.bpel.model.api.FromChild;
043: import org.netbeans.modules.bpel.model.api.FromPartContainer;
044: import org.netbeans.modules.bpel.model.api.Import;
045: import org.netbeans.modules.bpel.model.api.LinkContainer;
046: import org.netbeans.modules.bpel.model.api.MessageExchangeContainer;
047: import org.netbeans.modules.bpel.model.api.OnAlarmEvent;
048: import org.netbeans.modules.bpel.model.api.OnAlarmPick;
049: import org.netbeans.modules.bpel.model.api.OnMessage;
050: import org.netbeans.modules.bpel.model.api.PartnerLinkContainer;
051: import org.netbeans.modules.bpel.model.api.PatternedCorrelationContainer;
052: import org.netbeans.modules.bpel.model.api.RepeatEvery;
053: import org.netbeans.modules.bpel.model.api.Scope;
054: import org.netbeans.modules.bpel.model.api.SourceContainer;
055: import org.netbeans.modules.bpel.model.api.StartCounterValue;
056: import org.netbeans.modules.bpel.model.api.Target;
057: import org.netbeans.modules.bpel.model.api.TerminationHandler;
058: import org.netbeans.modules.bpel.model.api.TimeEvent;
059: import org.netbeans.modules.bpel.model.api.To;
060: import org.netbeans.modules.bpel.model.api.ToPartContainer;
061: import org.netbeans.modules.bpel.model.api.VariableContainer;
062:
063: /**
064: * @author ads
065: *
066: */
067: public enum BpelTypesEnum implements BpelTypes {
068: PARTNERLINK_CONTAINER(PartnerLinkContainer.class), ACTIVITIES_GROUP(
069: ExtendableActivity.class), VARIABLE_CONTAINER(
070: VariableContainer.class), CORRELATION_SET_CONTAINER(
071: CorrelationSetContainer.class), FAULT_HANDLERS(
072: FaultHandlers.class), COMPENSATION_HANDLER(
073: CompensationHandler.class), EVENT_HANDLERS(
074: EventHandlers.class), TERMINATION_HANDLER(
075: TerminationHandler.class), CATCH_ALL(CatchAll.class), CATCH(
076: Catch.class), ON_ALARM_EVENT(OnAlarmEvent.class), EXTENSION_CONTAINER(
077: ExtensionContainer.class), IMPORT(Import.class), SOURCE_CONTAINER(
078: SourceContainer.class), TO(To.class), LINK_CONTAINER(
079: LinkContainer.class), ON_ALARM_PICK(OnAlarmPick.class), DOCUMENTATION(
080: Documentation.class), REPEAT_EVERY(RepeatEvery.class), SCOPE(
081: Scope.class), TARGET(Target.class), TO_PARTS(
082: ToPartContainer.class), FROM_PARTS(FromPartContainer.class), ELSE_IF(
083: ElseIf.class), ELSE(Else.class), CONDITION(Condition.class), CORRELATION_CONTAINER(
084: CorrelationContainer.class), COMPLETION_CONDITION(
085: CompletionCondition.class), FINAL_COUNTER_VALUE(
086: FinalCounterValue.class), MESSAGE_EXCHANGE_CONTAINER(
087: MessageExchangeContainer.class), FOR_OR_UNTIL_GROUP(
088: TimeEvent.class), BOOLEAN_EXPR(BooleanExpr.class), ON_MESSAGE(
089: OnMessage.class), PATTERNED_CORRELATION_CONTAINER(
090: PatternedCorrelationContainer.class), START_COUNTER_VALUE(
091: StartCounterValue.class), COPY_OR_EXTENSIBLE_ASSIGN(
092: AssignChild.class), AFTER_IMPORTS(AfterImport.class), AFTER_EXTENSIONS(
093: AfterExtensions.class), AFTER_SOURCES(AfterSources.class), AFTER_TARGETS(
094: AfterTargets.class), FROM_CHILD(FromChild.class), ;
095:
096: BpelTypesEnum(Class<? extends BpelEntity> clazz) {
097: myClass = clazz;
098: }
099:
100: /* (non-Javadoc)
101: * @see org.netbeans.modules.bpel.model.xam.BpelTypes#getComponentType()
102: */
103: /** {@inheritDoc} */
104: public Class<? extends BpelEntity> getComponentType() {
105: return myClass;
106: }
107:
108: private Class<? extends BpelEntity> myClass;
109: }
|