Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6787641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:23:26+00:00 2026-05-26T17:23:26+00:00

In StarUML 5.0, I am trying to define a class with an attribute of

  • 0

In StarUML 5.0, I am trying to define a class with an attribute of the type Guid[] (an array of Guid Structure). But it is not allowable to enter “-guids : Guid[]” since StarUML automatically discards the square brackets.

I have not tried other modeling tools…just want to know how to do this with StarUML.

StarUML seems to accepts if I provide the length of the array, like “-guids : Guid[10], but in the code generated by StarUML, this field is something like

private Guid guids; //the square brackets are missing;

Or I can add an asterisk like “-guids : Guid*”, in the code generated, the field is like this

private Guid* guids; 

this is not what i want neither, even with the fact that in C++ a pointer and an array is conceptually interchangeable. (I am coding in C#)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:23:27+00:00Added an answer on May 26, 2026 at 5:23 pm

    StarUML defines arrays a little differently to standard UML. For your specific problem I would use [*] to define the array. The first example below describes this.

    Define an array with an undefined number of elements:

    -guids: Guid[*]
    

    Define an array with a specific number of elements:

    -guids: Guid[16]
    

    Define a base 0 array with an undefined number of elements:

    -guids: Guid[0..*]
    

    Define a base 1 array with an undefined number of elements:

    -guids: Guid[1..*]
    

    Define a specific base array with a specific number of elements:

    -guids: Guid[1..100]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class diagram which i created using Star Uml but now the
I'm just using StarUML to create my UML Class diagram and something is bothering
I'm trying to transform some uml diagrams (of singleton , AbstractFactory ...) to Z
I am using the StarUml to draw some component dialog,however I found that it
I have designed UML diagrams in different tools (StarUML, BoUML, Papyrus, Omondo, Rational Rose,
For my project report, i need to show the class diagram of the software
Any idea how I express 'implements' in UML? I'm trying to write some actionscript
Good day, colleagues! I want to convert UML file generated in StarUML to OWL.
I have a rather simple UML project in StarUML (UML 1.3) and now I
My problem is a simple one. I've created a class library for Delphi 2007

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.