uml - Add nullable attribute to a class in enterprise architect -


i using enterprise architect uml. need generate code model. need have nullable double attribute in class. able add double attribute don't know how make nullable.

do have idea how add nullable attribute.

there small problems question, let me first answer part ea, , later.

in uml denote nullable type as

  • +attributename : typename [0..1]]
  • +fromuser : user [0..1]

in ea done in multiplicity section select class->hit f9->select attribute->click detail

lower bound , upper bound fields looking for, if each 1 attribute has single value [1] not depicted in diagram

  • [0..1] can have value of null.
  • [*] collection of values.
  • [1..*] collection contains @ least 1 value
  • [n..m] collection contains between n , m values. n , m replaced concrete numbers

in many languages double primitive/value type can not make null. if need to, have use double. note first letter capital.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -