You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/02/25 21:10:16 UTC
svn commit: r511587 -
/incubator/tuscany/java/spec/sca-api-r1.0/src/main/java/org/osoa/sca/annotations/Property.java
Author: jboynes
Date: Sun Feb 25 12:10:15 2007
New Revision: 511587
URL: http://svn.apache.org/viewvc?view=rev&rev=511587
Log:
add required attribute from spec
deprecate non-standard override and xmlType attributes until they can be removed
Modified:
incubator/tuscany/java/spec/sca-api-r1.0/src/main/java/org/osoa/sca/annotations/Property.java
Modified: incubator/tuscany/java/spec/sca-api-r1.0/src/main/java/org/osoa/sca/annotations/Property.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/spec/sca-api-r1.0/src/main/java/org/osoa/sca/annotations/Property.java?view=diff&rev=511587&r1=511586&r2=511587
==============================================================================
--- incubator/tuscany/java/spec/sca-api-r1.0/src/main/java/org/osoa/sca/annotations/Property.java (original)
+++ incubator/tuscany/java/spec/sca-api-r1.0/src/main/java/org/osoa/sca/annotations/Property.java Sun Feb 25 12:10:15 2007
@@ -36,18 +36,31 @@
public @interface Property {
/**
* The name of the property. If not specified then the name will be derived
- * from the annotated field.
+ * from the annotated field or method.
+ *
+ * @return the name of the property
*/
- public String name() default "";
+ String name() default "";
+
+ /**
+ * Indicates whether a value for the property must be provided.
+ *
+ * @return true if a value must be provided
+ */
+ boolean required() default false;
/**
* Indicates if a value must be specified.
+ * FIXME This is not part of the spec and must be removed.
*/
+ @Deprecated
public String override() default "may";
/**
- * The XML Type in a QName format
+ * The XML Type in a QName format.
+ * FIXME This is not part of the spec and must be removed.
*/
+ @Deprecated
public String xmlType() default "";
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org