Book a Demo

Author Topic: Where do I specify attribute format in a Class d.  (Read 2860 times)

Colt

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Where do I specify attribute format in a Class d.
« on: March 30, 2010, 05:26:29 am »
Where do I specify attribute format in a Class diagram.  I have to specify the format for IPAddress version 4.  I am new to the tool and just do not know where I can add the format to an attribute.  Sorry for the fundamental question.

Format for an Internet Protocol version 4 address.
([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))\.([0-9]|[1-9][0-9]|1([0-9][0-9])|2([0-4][0-9]|5[0-5]))

Colt

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Where do I specify attribute format in a Class
« Reply #1 on: March 30, 2010, 04:50:37 pm »
The closest that I can think of would be in an attribute constraint.  It's not displayed on the diagram though.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where do I specify attribute format in a Class
« Reply #2 on: March 30, 2010, 06:19:37 pm »
Colt,

In your case you better model the IP address as a datatype (class with stereotype datatype)
Then use your datatype as type of the attribute.

Geert

Colt

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Where do I specify attribute format in a Class
« Reply #3 on: March 30, 2010, 11:28:07 pm »
Many thanks for your quick responses.  You have given me some good suggestions to explore.  Most appreciated.

Colt