list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

WE1xx Identifier Invalid

Umple syntactic error or warning reported when an identifier does not have the correct syntax

In Umple, identifiers used for classes, association role names, types, attributes, state machines, states, events and other elements must be alphanumeric. In addition, class and interface names should start with a capital letter (or _), and other elements should start with a lower case letter. The exact error message you received will tell you which identifier has the problem. The examples below will generate these messages.

Example

// Class with non-alphanumeric name (100)
class @ {}

      

Load the above code into UmpleOnline

 

Another Example

// Warnings from attribute starting with
// upper case letter (131)
class X {
  Attrib;
}

class Y {}
      

Load the above code into UmpleOnline

 

Another Example

// Attribute name with special characters (130)
class X {
  na$me;
}

      

Load the above code into UmpleOnline

 

Another Example

// Attribute name with special characters
// that looks like an association (132)
// If this is supposed to be an association,
// put spaces before and after the -- and *
class X {
  1--*Y;
}

class Y {}

      

Load the above code into UmpleOnline

 

Another Example

// Attribute type with special characters
// that looks like an association (140)
// If this is supposed to be an association,
// put spaces before and after the --
class X {
  1--* Y;
}

class Y {}

      

Load the above code into UmpleOnline

 

Another Example

// State machine name with special
// characters (150)
class X {
  ed%4 {
    s1 {}
  }
}

      

Load the above code into UmpleOnline

 

Another Example

// State  name with special characters (152)
class X {
  ed4 {
    s*1 {}
  }
}

      

Load the above code into UmpleOnline