1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: Mapping.java
13 * Created: 2007-09-25
14 * Author: apohllo, entrop
15 * $Id: Mapping.java 2232 2009-01-04 22:59:53Z apohllo $
16 */
17
18 package pl.edu.agh.cast.model.mapper.annotation;
19
20 import java.lang.annotation.Documented;
21 import java.lang.annotation.ElementType;
22 import java.lang.annotation.Retention;
23 import java.lang.annotation.RetentionPolicy;
24 import java.lang.annotation.Target;
25
26 /**
27 * Indicates that given class is mapped to the metamodel (node). The optional argument is the name of the node type in
28 * the metamodel.
29 *
30 * You should also consult:
31 *
32 * @see pl.edu.agh.cast.model.base.metamodel.annotation.MapAttribute
33 * @see pl.edu.agh.cast.model.base.metamodel.annotation.MapLink for details how to map model attributes and links.
34 *
35 * @author AGH CAST Team
36 *
37 */
38 @Retention(RetentionPolicy.RUNTIME)
39 @Target(ElementType.TYPE)
40 @Documented
41 public @interface Mapping {
42 String value() default "";
43 }