All Downloads are FREE. Search and download functionalities are using the official Maven repository.

-test-blueprints.2.0.16.source-code.umlg-test.uml Maven / Gradle / Ivy

The newest version!


  
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
    
    
      
        
          
          
          
            
              
            
            
              
              
              
            
            
          
          
            
              
            
            
              
              
              
            
            
          
          
            
              
              
            
          
          
            
              
              
            
          
          
            
              
            
            
              
              
              
            
            
          
          
            
              
              
            
            
              
              
            
          
          
            
          
          
            
          
          
            
              
              
            
            
              
              
            
          
          
            
              
            
            
          
          
            
              
            
            
          
          
            
              
              
              
            
          
          
            
              
              
            
          
          
            
          
          
            
          
          
            
              
              
            
            
              
              
            
          
          
          
          
            
              
              
            
          
          
            
              
              
            
          
          
            
          
        
        
          
            
              
            
            
              
            
            
              
              
              
              
                ocl
                'whatajol'
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
              
            
            
              
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
              
                
                
                
              
            
            
              
              
            
            
              
              
              
                
              
            
            
              
              
            
            
              
              
              
                
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
              
                
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
              
            
            
              
              
            
            
              
              
            
            
              
              
              
            
            
              
              
            
            
              
              
              
                
              
            
            
              
              
              
                
              
            
            
              
              
            
            
              
              
            
            
              
              
              
            
          
          
            
              
            
            
              
              
              
            
            
              
              
            
            
              
              
              
            
            
              
              
              
            
            
              
              
              
            
            
              
              
              
            
            
              
              
              
            
            
              
              
              
            
            
              
              
              
            
          
          
            
              
            
            
              
              
              
            
          
          
            
              
              
            
          
          
            
              
              
            
          
          
            
              
              
            
            
              
              
            
          
          
            
              
            
            
              
              
              
            
          
          
            
              
              
            
          
          
            
              
              
            
            
              
              
            
          
          
            
              
              
            
          
          
            
              
              
            
          
          
            
              
              
            
          
          
            
              
              
            
          
          
          
            
              
              
            
          
          
        
        
          
            
              
            
            
              
              
                ocl
                'thisisdodge'
              
            
          
          
            
              
              
            
          
          
            
          
          
            
          
          
            
          
        
        
          
            This is modelled to duplicate a bug, where the BaseCollection's internalVertexMap was using the literal's name which is not necessary unique. Replaced it with the qualified name.
          
          
            
            
          
          
            
              
              
            
            
              
              
            
          
          
            
              
              
              
            
            
              
              
              
              
                OCL
                Sequence{1,2,3}
              
            
            
              
              
              
              
                OCL
                OrderedSet{'a', 'b', 'c'}
              
            
            
              
              
              
            
            
              
              
              
            
          
          
            
              
              
            
            
              
              
            
          
          
            
            
            
          
          
            
              
              
            
          
          
            
            
            
          
          
            
              
              
            
          
        
        
          
            
          
          
            
          
          
            
            
              
                
                  
OCL null null true OCL null false ocl self.name ocl self.parentFolder Set{}->union(self.childFolder) OCL self.getChildren()->iterate(iter : umlglib::org::umlg::hierarchy::Hierarchy; acc : Set(umlglib::org::umlg::hierarchy::Hierarchy) = Set{} | acc->including(iter)->union(iter.getAllChildren())) qualifier2[name2] name1Qualifier[name1] name2Qualifier[name2] name1Qualifier[name1] nameUniqueQualifier[nameUnique] many1Qualifier1[name] many2Qualifier1[name] listQualifier2[name] listQualifier1[name] qualifierInt1[int1] qualifierInt2[int2], qualifierInt3[int3] qualified on BQualifierA.name qualified by BQualifierA.name Qualified by name Qualified by parameterName OCL self.name.indexOf('X') = -1 OCL if not self.constraintChild2.oclIsUndefined() then self.constraintRoot.constraintChild2->includes(self.constraintChild2) else true endif This is to test that root objects in a inheritance hierarchy's allInstances works
OCL test1 = 'halo'
OCL self.oclDataType2.email->asSet() OCL self.age > 1 and self.age < 5 OCL self.oclExists2->exists(name='joe') OCL self.forAll2->forAll(name='joe') OCL if (self.name='halo' or self.name='bye') then 'one' else 'two' endif OCL self.name.indexOf('a') OCL self.name.substring(0, 3) OCL self.name.substring(0, self.name.indexOf('a')) OCL 'ASD'.concat('ASD').toLowerCase() OCL 'asd'.concat('asd').toUpperCase() OCL self.sortedByChild->sortedBy(sortBy) OCL self.includesAll4->includesAll(self.includesAll2.includesAll3.includesAll4) OCL self.oCLENUM1 = OCLENUM1::ENUM1 oclQualifierB[name] OCL self.oclQualifierB->asSet() OCL self.oclQualifierB.oclQualifierC->asSet() OCL self.oclQualifierA.oclQualifierB->asSet()
OCL if (not oclOperationEnum.oclIsUndefined()) then oclOperationEnumParam.toString() else '' endif OCL self.oclIsTypeOf(OclIsTypeOf) OCL self.oclIsKindOf(AbstractOclIsKindOf) OCL if (param1.oclIsTypeOf(OclIsTypeOf)) then param1.oclAsType(OclIsTypeOf).test else false endif Kind OCL self.abstractOclIsKindOf->any(name='testOclIsKindOf').oclAsType(OclIsKindOf).something This is to test collect over classes in different packages OCL self.collect2->select(c | c.enumeration1.oclIsUndefined())->size() <= 1 OCL self.collect2.collect3->asSet() OCL self.collect2->select(c | c.password.oclIsUndefined()) OCL self.collect2->select(c | c.really.oclIsUndefined())
OCL self.iterateChild->iterate(c : IterateChild; acc : String = '' | acc.concat(c.name)) OCL self.iterateChild->iterate(c : IterateChild; acc : String = '' | if (acc = '') then 'start'.concat(c.name) else acc.concat(c.name) endif )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy