Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/old/util/DelegatingTag.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/old/util/DelegatingTag.java74
1 files changed, 74 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/old/util/DelegatingTag.java b/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/old/util/DelegatingTag.java
new file mode 100644
index 0000000000..370974ef67
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/old/util/DelegatingTag.java
@@ -0,0 +1,74 @@
+/**
+ * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.releng.doc.article.old.util;
+
+import com.sun.javadoc.Doc;
+import com.sun.javadoc.SourcePosition;
+import com.sun.javadoc.Tag;
+
+/**
+ * @author Eike Stepper
+ */
+public class DelegatingTag implements Tag
+{
+ private final Tag delegate;
+
+ public DelegatingTag(Tag delegate)
+ {
+ this.delegate = delegate;
+ }
+
+ public Tag getDelegate()
+ {
+ return delegate;
+ }
+
+ public String name()
+ {
+ return delegate.name();
+ }
+
+ public Doc holder()
+ {
+ return delegate.holder();
+ }
+
+ public String kind()
+ {
+ return delegate.kind();
+ }
+
+ public String text()
+ {
+ return delegate.text();
+ }
+
+ @Override
+ public String toString()
+ {
+ return text();
+ }
+
+ public Tag[] inlineTags()
+ {
+ return delegate.inlineTags();
+ }
+
+ public Tag[] firstSentenceTags()
+ {
+ return delegate.firstSentenceTags();
+ }
+
+ public SourcePosition position()
+ {
+ return delegate.position();
+ }
+}

Back to the top