Skip to content
Discussion options

You must be logged in to vote

Yes, external classes can be added as types of attributes. Therefore, instanced attributes can be stored in the graph and accessed via a graph query.
Adding an external class as type is achieved by wrapping the external class in a package (class diagram).
`type File wraps java.io.File

class ClassWithFileAttribute {
file : File
}`
See also the documentation (Language -> Classes Specification -> Datatype).

In the described example, it is a recommend way to handle the external class, but other problems may need other solutions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iils-mriestenpattgenrichter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant