Dependency annotation

Stereotype tags are used to store UML dependence values. They can be used for all UML elements, such as class, interface, property, dependency etc.


package com.soyatec.uml.annotations; 

public @interface UML {
	/**
* Dependencies annotation definition
*/

@Target({ElementType.TYPE, ElementType.PACKAGE})
public @interface
Dependencies {
com.soyatec.uml.annotations.Dependency[] value();
}
/** * Dependency annotation definition */ public
@interface Dependency { String value(); // supplier String kind() default "usage"; Stereotype[] stereotypes() default {}; } }

Name

Value Type

Cardinality

Default value

Description

value

String

(1…1)

 

This field contains a qualified name of the supplier.

kind

String

(0…1)

“usage”

This attribute indicates the dependency nature corresponding to a subclass of UML Dependency. The default value is corresponding to UML Usage class.

stereotypes

@Stereotype[]

(0…*)

 

This attribute contains the list of all applied stereotypes .

 

Copyright © Soyatec 2006. All Rights Reserved.