Class: Shale::Mapper

Inherits:
Object show all
Defined in:
lib/xmi.rb

Direct Known Subclasses

Abstraction, Action, ActionSequence, ActionSequenceaction, ActionSequencestate, ActionSequencestate2, ActionSequencetransition, ActionState, ActionactionSequence, ActionactualArgument, ActionisAsynchronous, Actionmessage, Actionrecurrence, Actionrequest, Actionscript, Actiontarget, ActivityModel, ActivityModelpartition, ActivityState, Actor, Argument, Argumentaction, Argumentvalue, Association, AssociationClass, AssociationEnd, AssociationEndRole, AssociationEndRoleassociationRole, AssociationEndRolebase, AssociationEndaggregation, AssociationEndassociation, AssociationEndassociationEndRole, AssociationEndchangeable, AssociationEndisNavigable, AssociationEndisOrdered, AssociationEndlinkEnd, AssociationEndmultiplicity, AssociationEndqualifier, AssociationEndspecification, AssociationEndtargetScope, AssociationEndtype, AssociationRole, AssociationRolebase, AssociationRolemultiplicity, AssociationRolenamespace, AssociationassociationEnd, Associationconnection, Associationlink, Attribute, AttributeLink, AttributeLinkattribute, AttributeLinkinstance, AttributeLinkvalue, AttributeassociationEnd, AttributeattributeLink, AttributeinitialValue, AuxiliaryElements, BehavioralElements, BehavioralFeature, BehavioralFeatureisQuery, BehavioralFeatureparameter, BehavioralFeatureraisedException, Binding, Bindingargument, BooleanExpression, CallAction, CallActionmode, CallEvent, CallEventoperation, ChangeEvent, ChangeEventchangeExpression, Class, Classifier, ClassifierInState, ClassifierInStateinState, ClassifierInStateobjectFlowState, ClassifierInStatetype, ClassifierRole, ClassifierRoleassociationEndRole, ClassifierRoleavailableFeature, ClassifierRolebase, ClassifierRolemessage, ClassifierRolemessage2, ClassifierRolemultiplicity, ClassifierRolenamespace, ClassifierassociationEnd, ClassifierclassifierInState, ClassifierclassifierRole, Classifiercollaboration, ClassifiercreateAction, Classifierfeature, Classifierinstance, Classifierparameter, Classifierparticipant, Classifierrealization, Classifierspecification, ClassifierstructuralFeature, ClassisActive, Collaboration, CollaborationconstrainingElement, Collaborationinteraction, CollaborationrepresentedClassifier, CollaborationrepresentedOperation, Collaborations, Comment, CommonBehavior, Component, Componentdeployment, Componentimplements, CompositeState, CompositeStateisConcurrent, CompositeStatesubstate, Constraint, Constraintbody, ConstraintconstrainedElement, ConstraintconstrainedStereotype, Core, CreateAction, CreateActioninstantiation, DataType, DataTypes, DataValue, Dependency, Dependencyclient, Dependencydescription, DependencyowningDependency, DependencysubDependencies, Dependencysupplier, DestroyAction, Diagram, DiagramCompositions, DiagramElement, DiagramElementProperties, DiagramElementdiagram, DiagramElementgeometry, DiagramElementstyle, DiagramProperties, DiagramdiagramType, Diagramelement, Diagramname, Diagramowner, Diagramstyle, DiagramtoolName, Element, ElementReference, ElementReferencealias, ElementReferencepackage, ElementReferencereferencedElement, ElementReferencevisibility, Enumeration, EnumerationLiteral, EnumerationLiteralenumeration, EnumerationLiteralname, Enumerationliteral, Event, Eventstate, Eventtransition, Exception, Exceptioncontext, Expression, Expressionbody, Expressionlanguage, ExtensionMechanisms, Feature, FeatureclassifierRole, Featureowner, FeatureownerScope, Foundation, GeneralizableElement, GeneralizableElementgeneralization, GeneralizableElementisAbstract, GeneralizableElementisLeaf, GeneralizableElementisRoot, GeneralizableElementspecialization, Generalization, Generalizationdiscriminator, Generalizationsubtype, Generalizationsupertype, Geometry, Geometrybody, GraphicMarker, GraphicMarkerbody, Guard, Guardexpression, Guardtransition, Instance, InstanceattributeLink, Instanceclassifier, InstancelinkEnd, InstancemessageInstance, InstancemessageInstance2, InstancemessageInstance3, Instanceslot, Interaction, Interactioncontext, Interactionmessage, Interface, Link, LinkEnd, LinkEndassociationEnd, LinkEndinstance, LinkEndlink, LinkObject, Linkassociation, LinklinkRole, LocalInvocation, Mapping, Mappingbody, Message, MessageInstance, MessageInstanceargument, MessageInstancereceiver, MessageInstancesender, MessageInstancespecification, Messageaction, Messageactivator, Messageinteraction, Messagemessage, Messagemessage2, Messagepredecessor, Messagereceiver, Messagesender, Method, Methodbody, Methodspecification, Model, ModelElement, ModelElementOwnsDiagramownedDiagram, ModelElementbehavior, ModelElementbinding, ModelElementcollaboration, ModelElementconstraint, ModelElementelementReference, ModelElementimplementation, ModelElementname, ModelElementnamespace, ModelElementpartition, ModelElementpresentation, ModelElementprovision, ModelElementrequirement, ModelElementstereotype, ModelElementtaggedValue, ModelElementtemplate, ModelElementtemplateParameter, ModelElementview, ModelElementvisibility, ModelManagement, MultiplicityRange, MultiplicityRangelower, MultiplicityRangeupper, Namespace, NamespaceownedElement, Node, Nodecomponent, Object, ObjectFlowState, ObjectFlowStatetypeState, ObjectSetExpression, Operation, Operationcollaboration, Operationconcurrency, OperationisPolymorphic, Operationmethod, Operationoccurrence, Operationspecification, Package, PackageelementReference, Parameter, ParameterbehavioralFeature, ParameterdefaultValue, Parameterkind, Parametersignal, Parametertype, Partition, PartitionactivityModel, Partitioncontents, Presentation, Presentationgeometry, Presentationmodel, Presentationstyle, PresentationviewElement, Primitive, ProcedureExpression, PseudoState, PseudoStatekind, Reception, ReceptionisPolymorphic, Receptionsignal, Receptionspecification, Refinement, Refinementmapping, Request, Requestaction, RequestmessageInstance, ReturnAction, SendAction, Signal, SignalEvent, SignalEventsignal, Signaloccurrence, Signalparameter, Signalreception, SimpleState, State, StateMachine, StateMachinecontext, StateMachines, StateMachinesubmachineState, StateMachinetop, StateMachinetransitions, StateVertex, StateVertexincoming, StateVertexoutgoing, StateVertexparent, StateclassifierInState, StatedeferredEvent, Stateentry, Stateexit, StateinternalTransition, StatestateMachine, Stereotype, StereotypebaseClass, StereotypeextendedElement, Stereotypeicon, StereotyperequiredTag, StereotypestereotypeConstraint, StructuralFeature, StructuralFeaturechangeable, StructuralFeaturemultiplicity, StructuralFeaturetargetScope, StructuralFeaturetype, Structure, SubmachineState, SubmachineStatestateMachine, Subsystem, SubsystemisInstantiable, TaggedValue, TaggedValuemodelElement, TaggedValuestereotype, TaggedValuetag, TaggedValuevalue, TerminateAction, TimeEvent, TimeEventduration, TimeExpression, Trace, Transition, Transitioneffect, Transitionguard, Transitionsource, Transitionstate, Transitionstatemachine, Transitiontarget, Transitiontrigger, UninterpretedAction, UninterpretedActionbody, Usage, UseCase, UseCaseInstance, UseCaseextensionPoint, UseCases, ViewElement, ViewElementmodel, ViewElementpresentation, XMIextension, XMIreference, Xmi::Add, Xmi::Delete, Xmi::Difference, Xmi::Documentation, Xmi::EaXmiHeader, Xmi::EaXmiHeaderDocumentation, Xmi::Extension, Xmi::Replace, Xmi::Root, Xmi::Root13, Xmi::Root2013, Xmi::Sparx::SparxConnector, Xmi::Sparx::SparxConnectorAppearance, Xmi::Sparx::SparxConnectorEndConstraint, Xmi::Sparx::SparxConnectorEndConstraints, Xmi::Sparx::SparxConnectorEndModifiers, Xmi::Sparx::SparxConnectorEndRole, Xmi::Sparx::SparxConnectorEndStyle, Xmi::Sparx::SparxConnectorEndType, Xmi::Sparx::SparxConnectorModel, Xmi::Sparx::SparxConnectorProperties, Xmi::Sparx::SparxConnectorSource, Xmi::Sparx::SparxConnectorTarget, Xmi::Sparx::SparxConnectors, Xmi::Sparx::SparxCustomProfileEdition, Xmi::Sparx::SparxCustomProfileNumber, Xmi::Sparx::SparxCustomProfilePublicationDate, Xmi::Sparx::SparxCustomProfileYearVersion, Xmi::Sparx::SparxDiagram, Xmi::Sparx::SparxDiagramElement, Xmi::Sparx::SparxDiagramElements, Xmi::Sparx::SparxDiagramModel, Xmi::Sparx::SparxDiagramStyle, Xmi::Sparx::SparxDiagrams, Xmi::Sparx::SparxElement, Xmi::Sparx::SparxElementAssociation, Xmi::Sparx::SparxElementAttribute, Xmi::Sparx::SparxElementAttributes, Xmi::Sparx::SparxElementBounds, Xmi::Sparx::SparxElementCode, Xmi::Sparx::SparxElementContainment, Xmi::Sparx::SparxElementCoords, Xmi::Sparx::SparxElementExtendedProperties, Xmi::Sparx::SparxElementFlags, Xmi::Sparx::SparxElementLinks, Xmi::Sparx::SparxElementModel, Xmi::Sparx::SparxElementPackageProperties, Xmi::Sparx::SparxElementPaths, Xmi::Sparx::SparxElementProject, Xmi::Sparx::SparxElementProperties, Xmi::Sparx::SparxElementStereotype, Xmi::Sparx::SparxElementStyle, Xmi::Sparx::SparxElementStyleex, Xmi::Sparx::SparxElementTag, Xmi::Sparx::SparxElementTags, Xmi::Sparx::SparxElementTimes, Xmi::Sparx::SparxElementXrefs, Xmi::Sparx::SparxElements, Xmi::Sparx::SparxExtension, Xmi::Sparx::SparxExtension2013, Xmi::Sparx::SparxPrimitiveTypes, Xmi::Sparx::SparxProfiles, Xmi::Sparx::SparxProfiles2013, Xmi::Sparx::SparxSysPhS, Xmi::Uml::AnnotatedElement, Xmi::Uml::AssociationGeneralization, Xmi::Uml::AssociationGeneralization2013, Xmi::Uml::Bounds, Xmi::Uml::DefaultValue, Xmi::Uml::Diagram, Xmi::Uml::Diagram2013, Xmi::Uml::ImportedPackage, Xmi::Uml::MemberEnd, Xmi::Uml::OwnedAttribute, Xmi::Uml::OwnedAttribute2013, Xmi::Uml::OwnedComment, Xmi::Uml::OwnedComment2013, Xmi::Uml::OwnedElement, Xmi::Uml::OwnedEnd, Xmi::Uml::OwnedEnd2013, Xmi::Uml::OwnedLiteral, Xmi::Uml::OwnedOperation, Xmi::Uml::OwnedParameter, Xmi::Uml::PackageImport, Xmi::Uml::PackageImport2013, Xmi::Uml::PackagedElement, Xmi::Uml::PackagedElement2013, Xmi::Uml::Precondition, Xmi::Uml::Profile, Xmi::Uml::Profile2013, Xmi::Uml::ProfileApplication, Xmi::Uml::ProfileApplicationAppliedProfile, Xmi::Uml::Specification, Xmi::Uml::Type, Xmi::Uml::UmlModel, Xmi::Uml::UmlModel2013, Xmi::Uml::Waypoint

Instance Method Summary collapse

Instance Method Details

#type?(test_type) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/xmi.rb', line 13

def type?(test_type)
  !!type ? type == test_type : false
end