Author: Alex.Kolonitsky
Date: 2009-11-01 11:01:20 -0500 (Sun, 01 Nov 2009)
New Revision: 15788
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Alias.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attribute.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attributes.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Behavior.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Component.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Converter.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DefaultValue.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DisplayName.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Event.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventName.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventNames.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facet.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facets.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Family.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Fires.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Generate.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Icon.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplate.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplates.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Signature.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SuggestedValue.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Test.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/TestType.java
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/package-info.java
Log:
Code style policy
https://jira.jboss.org/jira/browse/RFPL-195
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Alias.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Alias.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Alias.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -30,27 +30,24 @@
import java.lang.annotation.Target;
/**
- * <p class="changed_added_4_0">Attribute aliases. CDK will generate
getters/setters for these aliases which delegate calls to the original attribute methods.
- * </p>
- *
+ * <p class="changed_added_4_0">Attribute aliases. CDK will generate
getters/setters for these aliases which
+ * delegate calls to the original attribute methods. </p>
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface Alias {
- public static final String NAME = "org.richfaces.cdk.annotations.Alias";
+ public static final String NAME = "org.richfaces.cdk.annotations.Alias";
- /**
- * <p class="changed_added_4_0">
- * Attribute aliases. This is mandatory parameter</p>
- *
- * @return attribute aliases.
- */
- public String[] value();
+ /**
+ * <p class="changed_added_4_0">
+ * Attribute aliases. This is mandatory parameter</p>
+ *
+ * @return attribute aliases.
+ */
+ public String[] value();
-
-
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attribute.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attribute.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attribute.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -35,7 +37,7 @@
*
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.FIELD,ElementType.METHOD})
+(a)Target({ElementType.FIELD, ElementType.METHOD})
@Inherited
public @interface Attribute {
@@ -56,16 +58,13 @@
* @return
*/
boolean readOnly() default false;
-
-// boolean transient() default false;
+// boolean transient() default false;
+
/**
* <p class="changed_added_4_0"></p>
* @return
*/
boolean passThough() default false;
-
- boolean required() default false;
-
-
+ boolean required() default false;
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attributes.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attributes.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Attributes.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,26 +32,25 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Attributes {
- public static final String NAME = "org.richfaces.cdk.annotations.Attributes";
+ public static final String NAME =
"org.richfaces.cdk.annotations.Attributes";
- /**
- * <p class="changed_added_4_0">
- * To avoid copy/paste routine for standard or other useful attributes, their
definitions could be
- * stored in faces-config.xml extensions and reused from different
- * components.
- * </p>
- *
- * @return URL's of the XML files that contain attribute definitions.
- */
- public String[] value();
+ /**
+ * <p class="changed_added_4_0">
+ * To avoid copy/paste routine for standard or other useful attributes, their
definitions could be
+ * stored in faces-config.xml extensions and reused from different
+ * components.
+ * </p>
+ *
+ * @return URL's of the XML files that contain attribute definitions.
+ */
+ public String[] value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Behavior.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Behavior.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Behavior.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,25 +32,24 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Behavior {
- public static final String NAME = "org.richfaces.cdk.annotations.Behavior";
+ public static final String NAME =
"org.richfaces.cdk.annotations.Behavior";
- /**
- * <p class="changed_added_4_0">
- * behavior-id with which instances of implementation class can be created b JSF
Application implementation. If this value an empty, behavior-id will be inferred from
class name.
- * </p>
- *
- * @return converter type.
- */
- public String value() ;
+ /**
+ * <p class="changed_added_4_0">
+ * behavior-id with which instances of implementation class can be created b JSF
Application implementation.
+ * If this value an empty, behavior-id will be inferred from class name. </p>
+ *
+ * @return converter type.
+ */
+ public String value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Component.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Component.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Component.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -29,44 +29,41 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-import javax.faces.component.FacesComponent;
-
/**
* <p class="changed_added_4_0">
* That annotation marks class as JSF component. The difference with JSF 2.0
- * @{@link FacesComponent} annotation is what this one could marks abstaract
+ * @{@link javax.faces.component.FacesComponent} annotation is what this one
could marks abstaract
* class from which a real UI-component implementation will be generated. The
* value of default {@link #value()} attribute is taken to be
* <em>component type</em>. The fully qualified class name becomes a
component
* class unless that class is abstract or final component class is defined by
* the {@link Generate} annotation value.
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Component {
- /**
- * <p class="changed_added_4_0">Annotation class name to use as key for
annotation processor class.</p>
- */
- public static final String NAME = "org.richfaces.cdk.annotations.Component";
+ /**
+ * <p class="changed_added_4_0">Annotation class name to use as key
for annotation processor class.</p>
+ */
+ public static final String NAME =
"org.richfaces.cdk.annotations.Component";
- /**
- * <p class="changed_added_4_0">
- * Type of the component. Currently this is mandatory parameter because CDK
- * uses <em>component-type</em> as primary key for components library
model.
- * </p>
- * <p class="todo">
- * TODO if this value is an empty, component type will be inferred from
- * class name.
- * </p>
- *
- * @return component type.
- */
- public String value() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * Type of the component. Currently this is mandatory parameter because CDK
+ * uses <em>component-type</em> as primary key for components library
model.
+ * </p>
+ * <p class="todo">
+ * TODO if this value is an empty, component type will be inferred from
+ * class name.
+ * </p>
+ *
+ * @return component type.
+ */
+ public String value() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Converter.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Converter.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Converter.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,25 +32,24 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Converter {
- public static final String NAME = "org.richfaces.cdk.annotations.Converter";
+ public static final String NAME =
"org.richfaces.cdk.annotations.Converter";
- /**
- * <p class="changed_added_4_0">
- * Type of the renderer. If this value an empty, component type will be inferred from
class name.
- * </p>
- *
- * @return converter type.
- */
- public String id() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * Type of the renderer. If this value an empty, component type will be inferred from
class name.
+ * </p>
+ *
+ * @return converter type.
+ */
+ public String id() default "";
public Class<?> forClass() default Object.class;
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DefaultValue.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DefaultValue.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DefaultValue.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -35,10 +37,8 @@
*
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface DefaultValue {
-
- String value();
-
+ String value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DisplayName.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DisplayName.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/DisplayName.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,25 +32,24 @@
/**
* <p class="changed_added_4_0">Defines name that would be used in IDE to
display.
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.TYPE,ElementType.METHOD})
+(a)Target({ElementType.TYPE, ElementType.METHOD})
@Inherited
public @interface DisplayName {
- public static final String NAME =
"org.richfaces.cdk.annotations.DisplayName";
+ public static final String NAME =
"org.richfaces.cdk.annotations.DisplayName";
- /**
- * <p class="changed_added_4_0">
- * IDE display name.
- * </p>
- *
- * @return Icon url.
- */
- public String value();
+ /**
+ * <p class="changed_added_4_0">
+ * IDE display name.
+ * </p>
+ *
+ * @return Icon url.
+ */
+ public String value();
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Event.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Event.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Event.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -37,33 +37,32 @@
* <li>Event tag handler and binding wrapper.</li>
* </ul>
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Event {
- public static final String NAME = "org.richfaces.cdk.annotations.Event";
+ public static final String NAME = "org.richfaces.cdk.annotations.Event";
- /**
- * <p class="changed_added_4_0">
- * Name of the listener interface class.
- * </p>
- *
- * @return name of generated listener interface..
- */
- public String listener() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * Name of the listener interface class.
+ * </p>
+ *
+ * @return name of generated listener interface..
+ */
+ public String listener() default "";
- /**
- * <p class="changed_added_4_0">
- * Name of the listener interface class.
- * </p>
- *
- * @return name of generated source interface..
- */
- public String source() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * Name of the listener interface class.
+ * </p>
+ *
+ * @return name of generated source interface..
+ */
+ public String source() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventName.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventName.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventName.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -35,19 +37,19 @@
*
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface EventName {
-
- /**
- * <p class="changed_added_4_0"></p>
- * @return
- */
- public String value() default "";
- /**
- * <p class="changed_added_4_0"></p>
- * @return
- */
- public boolean defaultEvent() default false;
+ /**
+ * <p class="changed_added_4_0"></p>
+ * @return
+ */
+ public String value() default "";
+
+ /**
+ * <p class="changed_added_4_0"></p>
+ * @return
+ */
+ public boolean defaultEvent() default false;
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventNames.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventNames.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/EventNames.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -35,14 +37,13 @@
*
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface EventNames {
-
- /**
- * <p class="changed_added_4_0"></p>
- * @return
- */
- public EventName[] value();
+ /**
+ * <p class="changed_added_4_0"></p>
+ * @return
+ */
+ public EventName[] value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facet.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facet.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facet.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -31,20 +31,21 @@
/**
* <p class="changed_added_4_0"></p>
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.METHOD)
@Inherited
public @interface Facet {
- public static final String NAME = "org.richfaces.cdk.annotations.Facet";
+ public static final String NAME = "org.richfaces.cdk.annotations.Facet";
/**
* <p class="changed_added_4_0">The name of that facet.</p>
+ *
* @return
*/
String value() default "";
-
+
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facets.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facets.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Facets.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,26 +32,25 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Facets {
- public static final String NAME = "org.richfaces.cdk.annotations.Facets";
+ public static final String NAME = "org.richfaces.cdk.annotations.Facets";
- /**
- * <p class="changed_added_4_0">
- * To avoid copy/paste routine for standard or other useful attributes, their
definitions could be
- * stored in faces-config.xml extensions and reused from different
- * components.
- * </p>
- *
- * @return references to XML files that contain attributes definitions.
- */
- public Facet[] value();
+ /**
+ * <p class="changed_added_4_0">
+ * To avoid copy/paste routine for standard or other useful attributes, their
definitions could be
+ * stored in faces-config.xml extensions and reused from different
+ * components.
+ * </p>
+ *
+ * @return references to XML files that contain attributes definitions.
+ */
+ public Facet[] value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Family.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Family.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Family.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -31,26 +31,26 @@
/**
* <p class="changed_added_4_0">Defines family of the JSF component or
renderer.</p>
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Family {
- /**
- * <p class="changed_added_4_0">Annotation class name to use as key for
annotation processor class.</p>
- */
- public static final String NAME = "org.richfaces.cdk.annotations.Family";
+ /**
+ * <p class="changed_added_4_0">Annotation class name to use as key
for annotation processor class.</p>
+ */
+ public static final String NAME = "org.richfaces.cdk.annotations.Family";
- /**
- * <p class="changed_added_4_0">
- * The value of this annotation attribute is taken to be
<em>component-family</em> for annotated JSF component or renderer class. If
this value an empty, it will be inferred from component type or
<code>COMPONENT_FAMILY</code> constant.
- * </p>
- *
- * @return component family.
- */
- public String value() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * The value of this annotation attribute is taken to be
<em>component-family</em> for annotated JSF component or renderer class. If
this value an empty, it will be inferred from component type or
<code>COMPONENT_FAMILY</code> constant.
+ * </p>
+ *
+ * @return component family.
+ */
+ public String value() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Fires.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Fires.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Fires.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -33,18 +35,19 @@
/**
* <p class="changed_added_4_0">This annotation defines events that are
fired by component.</p>
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Fires {
- /**
- * <p class="changed_added_4_0">Array of all {@link FacesEvent}
inherited classes that could be fired by component.</p>
- * @return
- */
- public Class<? extends FacesEvent>[] value();
-
+ /**
+ * <p class="changed_added_4_0">Array of all {@link FacesEvent}
inherited classes that could be fired
+ * by component.</p>
+ *
+ * @return
+ */
+ public Class<? extends FacesEvent>[] value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Generate.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Generate.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Generate.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -34,26 +34,25 @@
* The presence of this annotation tells CDK to generate class or method
* implementation even though target does not have the {@code abstract} modifier.
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
-@Target( { ElementType.TYPE, ElementType.METHOD })
+(a)Target({ElementType.TYPE, ElementType.METHOD})
@Inherited
public @interface Generate {
- public static final String NAME = "org.richfaces.cdk.annotations.Generate";
+ public static final String NAME =
"org.richfaces.cdk.annotations.Generate";
- public static final String DEFAULT = NAME + ".DEFAULT";
+ public static final String DEFAULT = NAME + ".DEFAULT";
- /**
- * <p class="changed_added_4_0">
- * Name of the generated class. If this value was an empty, name will be inferred by
CDK.
- * </p>
- *
- * @return generated object type.
- */
- public String value() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * Name of the generated class. If this value was an empty, name will be inferred by
CDK.
+ * </p>
+ *
+ * @return generated object type.
+ */
+ public String value() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Icon.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Icon.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Icon.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,27 +32,26 @@
/**
* <p class="changed_added_4_0">Icon used that would be used in IDE to
display.
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.TYPE,ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface Icon {
- public static final String NAME = "org.richfaces.cdk.annotations.Icon";
+ public static final String NAME = "org.richfaces.cdk.annotations.Icon";
- /**
- * <p class="changed_added_4_0">
- * URL that defines IDE icon.
- * </p>
- *
- * @return Icon url.
- */
- public String small() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * URL that defines IDE icon.
+ * </p>
+ *
+ * @return Icon url.
+ */
+ public String small() default "";
- public String large() default "";
+ public String large() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Renderer.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -30,27 +30,27 @@
import java.lang.annotation.Target;
/**
- * <p class="changed_added_4_0">The presence of this annotation in the
JSF component class associated particular renderer with component.
- * </p>
- *
+ * <p class="changed_added_4_0">The presence of this annotation in the
JSF component class associated particular
+ * renderer with component. </p>
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Renderer {
- public static final String NAME = "org.richfaces.cdk.annotations.Renderer";
+ public static final String NAME =
"org.richfaces.cdk.annotations.Renderer";
- /**
- * <p class="changed_added_4_0">
- * The value of this annotation attribute is taken to be JSF
<em>renderer-type</em>. If this value was empty, component type will be
inferred from by the CDK.
- * </p>
- *
- * @return JSF <em>renderer-type</em>.
- */
- public String type() default "";
+ /**
+ * <p class="changed_added_4_0">
+ * The value of this annotation attribute is taken to be JSF
<em>renderer-type</em>. If this value was empty,
+ * component type will be inferred from by the CDK.
+ * </p>
+ *
+ * @return JSF <em>renderer-type</em>.
+ */
+ public String type() default "";
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplate.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplate.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplate.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,25 +32,24 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface RendererTemplate {
- public static final String NAME =
"org.richfaces.cdk.annotations.RendererTemplate";
+ public static final String NAME =
"org.richfaces.cdk.annotations.RendererTemplate";
- /**
- * <p class="changed_added_4_0">
- * Reference to renderer template used with that component.
- * </p>
- *
- * @return template url.
- */
- public String value();
+ /**
+ * <p class="changed_added_4_0">
+ * Reference to renderer template used with that component.
+ * </p>
+ *
+ * @return template url.
+ */
+ public String value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplates.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplates.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/RendererTemplates.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,26 +32,25 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface RendererTemplates {
- public static final String NAME =
"org.richfaces.cdk.annotations.RendererTemplates";
+ public static final String NAME =
"org.richfaces.cdk.annotations.RendererTemplates";
- /**
- * <p class="changed_added_4_0">
- * To avoid copy/paste routine for standard or other useful attributes, their
definitions could be
- * stored in faces-config.xml extensions and reused from different
- * components.
- * </p>
- *
- * @return references to XML files that contain attributes definitions.
- */
- public RendererTemplate[] value();
+ /**
+ * <p class="changed_added_4_0">
+ * To avoid copy/paste routine for standard or other useful attributes, their
definitions could be
+ * stored in faces-config.xml extensions and reused from different
+ * components.
+ * </p>
+ *
+ * @return references to XML files that contain attributes definitions.
+ */
+ public RendererTemplate[] value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Signature.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Signature.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Signature.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -35,20 +37,19 @@
*
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface Signature {
- /**
- * <p class="changed_added_4_0">Method return type. Default is {@code
Object}</p>
- * @return
- */
- public Class<?> returnType() default Object.class;
-
- /**
- * <p class="changed_added_4_0">Method parameters. Default is
no-argument method.</p>
- * @return
- */
- public Class<?>[] parameters() default {};
-
+ /**
+ * <p class="changed_added_4_0">Method return type. Default is {@code
Object}</p>
+ * @return
+ */
+ public Class<?> returnType() default Object.class;
+
+ /**
+ * <p class="changed_added_4_0">Method parameters. Default is
no-argument method.</p>
+ * @return
+ */
+ public Class<?>[] parameters() default {};
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SuggestedValue.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SuggestedValue.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/SuggestedValue.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
import java.lang.annotation.ElementType;
@@ -35,10 +37,8 @@
*
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.METHOD,ElementType.FIELD})
+(a)Target({ElementType.METHOD, ElementType.FIELD})
@Inherited
public @interface SuggestedValue {
-
- String value();
-
+ String value();
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Tag.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -32,34 +32,37 @@
/**
* <p class="changed_added_4_0">
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@Inherited
public @interface Tag {
- public static final String NAME = "org.richfaces.cdk.annotations.Tag";
+ public static final String NAME = "org.richfaces.cdk.annotations.Tag";
- /**
- * <p class="changed_added_4_0">
- * Name of the JSF tag that creates target component.
- * </p>
- *
- * @return tag name.
- */
- public String name();
+ /**
+ * <p class="changed_added_4_0">
+ * Name of the JSF tag that creates target component.
+ * </p>
+ *
+ * @return tag name.
+ */
+ public String name();
/**
- * <p class="changed_added_4_0">The value of this annotation
attribute defines JSF renderer that will be associated with component.</p>
+ * <p class="changed_added_4_0">The value of this annotation
attribute defines JSF renderer that will be
+ * associated with component.</p>
+ *
* @return
*/
public Renderer renderer();
-
+
/**
- * <p class="changed_added_4_0">Taglib url in which generated tag
will be defined. By default CDK uses url defined in the built project.</p>
+ * <p class="changed_added_4_0">Taglib url in which generated tag
will be defined. By default CDK uses url
+ * defined in the built project.</p>
+ *
* @return
*/
public String taglib() default "";
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Test.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Test.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/Test.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -33,36 +33,40 @@
* <p class="changed_added_4_0">Mark component class or method for
automated testing.</p>
* <p class="todo">TODO: introduce additional parameters to refine
generated test.
* </p>
- *
+ *
* @author asmirnov(a)exadel.com
- *
*/
@Retention(RetentionPolicy.CLASS)
-(a)Target({ElementType.TYPE,ElementType.METHOD})
+(a)Target({ElementType.TYPE, ElementType.METHOD})
@Inherited
public @interface Test {
- public static final String NAME = "org.richfaces.cdk.annotations.Test";
+ public static final String NAME = "org.richfaces.cdk.annotations.Test";
- /**
- * <p class="changed_added_4_0">
- * Name of the generated unit test class. Currently that is mandatory</p>
- * <p class="todo">TODO: if this value is an empty, class will be
inferred from the base class name.
- * </p>
- *
- * @return name of the generated test class.
- */
- public String testClass();
+ /**
+ * <p class="changed_added_4_0">
+ * Name of the generated unit test class. Currently that is mandatory</p>
+ * <p class="todo">TODO: if this value is an empty, class will be
inferred from the base class name.
+ * </p>
+ *
+ * @return name of the generated test class.
+ */
+ public String testClass();
- /**
- * <p class="changed_added_4_0">The value of this annotation attribute
is taken to be a name of the generated test method.</p>
- * @return
- */
- public String testMethod() default "";
- /**
- * <p class="changed_added_4_0">The value of this annotation attribute
tells CDK what kind of tests should be generated.</p>
- * @return
- */
- public TestType type() default TestType.ALL;
+ /**
+ * <p class="changed_added_4_0">The value of this annotation
attribute is taken to be a name of the generated
+ * test method.</p>
+ *
+ * @return
+ */
+ public String testMethod() default "";
+ /**
+ * <p class="changed_added_4_0">The value of this annotation
attribute tells CDK what kind of tests should be
+ * generated.</p>
+ *
+ * @return
+ */
+ public TestType type() default TestType.ALL;
+
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/TestType.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/TestType.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/TestType.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+
package org.richfaces.cdk.annotations;
/**
@@ -29,18 +31,19 @@
*
*/
public enum TestType {
-
- /**
- * <p class="changed_added_4_0">Generate tests for JSF
<b>RENDER_RESPONSE</b> phase.</p>
- */
- RENDER,
- /**
- * <p class="changed_added_4_0"></p>
- */
- DECODE,
- /**
- * <p class="changed_added_4_0">Generate all possible tests.</p>
- */
- ALL
+ /**
+ * <p class="changed_added_4_0">Generate tests for JSF
<b>RENDER_RESPONSE</b> phase.</p>
+ */
+ RENDER,
+
+ /**
+ * <p class="changed_added_4_0"></p>
+ */
+ DECODE,
+
+ /**
+ * <p class="changed_added_4_0">Generate all possible
tests.</p>
+ */
+ ALL
}
Modified:
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/package-info.java
===================================================================
---
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/package-info.java 2009-10-30
23:28:08 UTC (rev 15787)
+++
root/cdk/trunk/plugins/annotations/src/main/java/org/richfaces/cdk/annotations/package-info.java 2009-11-01
16:01:20 UTC (rev 15788)
@@ -1,3 +1,4 @@
+
/**
* <h1>Java annotations used by the CDK.</h1>
* <h2>Class-level annotations:</h2>
@@ -25,10 +26,9 @@
* <li>@{@link Icon} , @{@link DisplayName} - optional
IDE-related parameters.</li>
* </ul>
* <p> </p>
- *<h3>Facet annotations.</h3>
+ * <h3>Facet annotations.</h3>
* <p>There are two methods to define component facet. At the class level,
developer could use @{@link Facets annotations. It is also possible to define
facet getter/setter methods for facet and mark one of them with @{@link Facet}
annotation.</p>
-
- *
+ *
+ *
*/
package org.richfaces.cdk.annotations;
-