You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by gs...@apache.org on 2008/04/17 11:47:45 UTC
svn commit: r649028 - in /labs/vysper/src/main/java/org/apache/vysper/util:
./ annotations/ annotations/RfcCompliant.java
Author: gseitz
Date: Thu Apr 17 02:47:44 2008
New Revision: 649028
URL: http://svn.apache.org/viewvc?rev=649028&view=rev
Log:
LABS-123
Added:
labs/vysper/src/main/java/org/apache/vysper/util/
labs/vysper/src/main/java/org/apache/vysper/util/annotations/
labs/vysper/src/main/java/org/apache/vysper/util/annotations/RfcCompliant.java (with props)
Added: labs/vysper/src/main/java/org/apache/vysper/util/annotations/RfcCompliant.java
URL: http://svn.apache.org/viewvc/labs/vysper/src/main/java/org/apache/vysper/util/annotations/RfcCompliant.java?rev=649028&view=auto
==============================================================================
--- labs/vysper/src/main/java/org/apache/vysper/util/annotations/RfcCompliant.java (added)
+++ labs/vysper/src/main/java/org/apache/vysper/util/annotations/RfcCompliant.java Thu Apr 17 02:47:44 2008
@@ -0,0 +1,46 @@
+package org.apache.vysper.util.annotations;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * This annotation is used to mark methods, types or packages that implement a
+ * specific RFC or a section of an RFC. Use the <code>status</code> parameter
+ * to specify the compliance level.
+ *
+ * @author Gerolf Seitz (gseitz@apache.org)
+ *
+ */
+@Documented
+@Target( { ElementType.METHOD, ElementType.TYPE })
+@Retention(RetentionPolicy.RUNTIME)
+public @interface RfcCompliant {
+ public enum ComplianceStatus {
+ NOT_STARTED, PARTIAL, FINISHED
+ }
+
+ /**
+ * Specifies the RFC the target implements.
+ *
+ * @return the RFC number
+ */
+ String rfc();
+
+ /**
+ * Specifies the section the target implements.
+ *
+ * @return the section/appendix number or an empty {@link String} in case
+ * the entire RFC is implemented by the target
+ */
+ String section() default "";
+
+ /**
+ * Specifies the status of the RFC compliance.
+ *
+ * @return the compliance status
+ */
+ ComplianceStatus status();
+}
Propchange: labs/vysper/src/main/java/org/apache/vysper/util/annotations/RfcCompliant.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org