blob: 89553a2ed0464a9e645a09c9ac5533295481cfa9 [file] [log] [blame]
kmoorec9c9e2b2011-02-06 02:07:28 +00001/*******************************************************************************
kmoorec7a08672011-08-01 15:10:18 +00002 * Copyright (c) 2009, 2011 Oracle. All rights reserved.
kmoorec9c9e2b2011-02-06 02:07:28 +00003 * This program and the accompanying materials are made available under the
4 * terms of the Eclipse Public License v1.0, which accompanies this distribution
5 * and is available at http://www.eclipse.org/legal/epl-v10.html.
6 *
7 * Contributors:
8 * Oracle - initial API and implementation
9 ******************************************************************************/
10package org.eclipse.jpt.jpa.core.internal.jpa2.resource.java;
11
12import org.eclipse.jdt.core.dom.CompilationUnit;
kmoorec7a08672011-08-01 15:10:18 +000013import org.eclipse.jpt.common.core.internal.resource.java.NullAnnotation;
14import org.eclipse.jpt.common.core.resource.java.JavaResourceAnnotatedElement;
kmoorec9c9e2b2011-02-06 02:07:28 +000015import org.eclipse.jpt.common.core.utility.TextRange;
kmoorec9c9e2b2011-02-06 02:07:28 +000016import org.eclipse.jpt.jpa.core.jpa2.resource.java.MapsId2_0Annotation;
kmoorec9c9e2b2011-02-06 02:07:28 +000017
18/**
19 * <code>javax.persistence.MapsId</code>
20 */
21public final class NullMapsId2_0Annotation
22 extends NullAnnotation<MapsId2_0Annotation>
23 implements MapsId2_0Annotation
24{
kmoorec7a08672011-08-01 15:10:18 +000025 protected NullMapsId2_0Annotation(JavaResourceAnnotatedElement parent) {
kmoorec9c9e2b2011-02-06 02:07:28 +000026 super(parent);
27 }
28
29 public String getAnnotationName() {
30 return ANNOTATION_NAME;
31 }
32
33 // ***** value
34 public String getValue() {
35 return null;
36 }
37
38 public void setValue(String newValue) {
39 if (newValue != null) {
40 this.addAnnotation().setValue(newValue);
41 }
42 }
43
44 public TextRange getValueTextRange(CompilationUnit astRoot) {
45 return null;
46 }
47
48 public boolean valueTouches(int pos, CompilationUnit astRoot) {
49 return false;
50 }
51}