[Previous]  [Next] 
|
User Manual [Previous]  [Next] Types of DirectivesDirectives appear as the 'main' entries in an Umple file. The following are the main types:
Syntax// Directives are the top-level items in an umple file. See manual page TypesofDirectives // A directive is either used to configure the system or else is // an actual entity of the system to be modelled or generated directive- : [[checkForUnintendedBracket]]  | [[glossary]]  | [[generate]]  | [[suboption]]  | [[distribute]]  | [[generate_path]]  | [[filter]]  | [[useStatement]]  | [[namespace]]  | [[requirement]]  | [[reqImplementation]]  | [[tracerDirective]]  | [[entity]]  | [[debug]]  | [[strictness]]  | [[toplevelExtracode]]  | [[toplevelException]] // The generate clause can be used to generate multiple outputs // The --override is used to say that subsequent generate statements will be ignored generate : generate [=language:Java  |Nothing  |Php  |RTCpp  |SimpleCpp  |Ruby  |Python  |Cpp  |Json  |StructureDiagram  |Yuml  |Violet  |Umlet  |Simulate  |TextUml  |Scxml  |GvStateDiagram  |GvClassDiagram  |GvFeatureDiagram  |GvClassTraitDiagram  |GvEntityRelationshipDiagram  |Alloy  |NuSMV  |NuSMVOptimizer  |Papyrus  |Ecore  |Xmi  |Xtext  |Sql  |StateTables  |EventSequence  |Umple  |UmpleSelf  |USE  |Test  |SimpleMetrics  |PlainRequirementsDoc  |Uigu2  |ExternalGrammar]  ( [=suboptionIndicator:-s  |--suboption] " [**suboption] "  )* ; generate_path : generate [=language:Java  |Nothing  |Php  |RTCpp  |SimpleCpp  |Ruby  |Python  |Cpp  |Json  |StructureDiagram  |Yuml  |Violet  |Umlet  |Simulate  |TextUml  |Scxml  |GvStateDiagram  |GvClassDiagram  |GvFeatureDiagram  |GvClassTraitDiagram  |GvEntityRelationshipDiagram  |Alloy  |NuSMV  |NuSMVOptimizer  |Papyrus  |Ecore  |Xmi  |Xtext  |Sql  |StateTables  |EventSequence  |Umple  |UmpleSelf  |USE  |Test  |SimpleMetrics  |PlainRequirementsDoc  |Uigu2  |ExternalGrammar] " [**output] " [=override:--override  |--override-all]?  ( [=suboptionIndicator:-s  |--suboption] " [**suboption] "  )* ; // Use statements allow incorporation of other Umple files. See UseStatements useStatement : use [use] ( , [extraUse] )* // Namespaces divide the code into logical groups. See NamespaceDirectives namespace- : namespace [namespace] [[namespaceoption]]? ; // The main top level elements to be found in an Umple file entity- : [[mixsetIsFeature]]  | [[requireStatement]]  | [[mixsetDefinition]]  | [[classDefinition]]  | [[traitDefinition]]  | [[fixml]]  | [[interfaceDefinition]]  | [[externalDefinition]]  | [[associationDefinition]]  | [[associationClassDefinition]]  | [[stateMachineDefinition]]  | [[templateDefinition]]  | [[enumerationDefinition]]  | [[toplevelCodeInjection]] |