Author: alexsmirnov
Date: 2009-06-12 19:51:00 -0400 (Fri, 12 Jun 2009)
New Revision: 14609
Added:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/AttributeBean.java
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/EventBean.java
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/FacetBean.java
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagLibraryBean.java
Modified:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java
Log:
Continue CDK model development.
Added:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/AttributeBean.java
===================================================================
---
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/AttributeBean.java
(rev 0)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/AttributeBean.java 2009-06-12
23:51:00 UTC (rev 14609)
@@ -0,0 +1,17 @@
+package org.richfaces.cdk.model;
+
+public class AttributeBean {
+
+ private String type;
+
+ private String family;
+
+ private String className;
+
+ private String superClass;
+
+ private String renderKit;
+
+ private String template;
+
+}
Property changes on:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/AttributeBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java
===================================================================
---
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java 2009-06-12
23:10:46 UTC (rev 14608)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/ComponentBean.java 2009-06-12
23:51:00 UTC (rev 14609)
@@ -9,22 +9,64 @@
*/
public class ComponentBean {
+ /**
+ * <p class="changed_added_4_0">Component type</p>
+ */
private String type;
+ /**
+ * <p class="changed_added_4_0">component family</p>
+ */
private String family;
+ /**
+ * <p class="changed_added_4_0">Cenerated component class</p>
+ */
private String className;
+ /**
+ * <p class="changed_added_4_0">Base class for generated
component</p>
+ */
private String superClass;
+ /**
+ * <p class="changed_added_4_0">Long description for
documentation</p>
+ */
private String description;
+ /**
+ * <p class="changed_added_4_0">Short name for IDE tools</p>
+ */
private String displayname;
+ /**
+ * <p class="changed_added_4_0">Icon name for IDE tools</p>
+ */
private String icon;
- private List<PropertyBean> properties;
+ /**
+ * <p class="changed_added_4_0">Component attributes</p>
+ */
+ private List<PropertyBean> attributes;
+ /**
+ * <p class="changed_added_4_0">VDL tag. This is bidirectional one to
one relation.</p>
+ */
private TagBean tag;
+ /**
+ * <p class="changed_added_4_0">Application level events fired by the
component</p>
+ */
+ private List<EventBean> events;
+
+ /**
+ * <p class="changed_added_4_0">Renderer for the final component. This
is bidirectional one to one relation.</p>
+ */
+ private AttributeBean renderer;
+
+ /**
+ * <p class="changed_added_4_0">Facets recognised by the
component</p>
+ */
+ private List<FacetBean> facets;
+
}
Added: branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/EventBean.java
===================================================================
--- branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/EventBean.java
(rev 0)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/EventBean.java 2009-06-12
23:51:00 UTC (rev 14609)
@@ -0,0 +1,43 @@
+/*
+ * $Id$
+ *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.cdk.model;
+
+/**
+ * <p class="changed_added_4_0"></p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+public class EventBean {
+
+ private String name;
+
+ private String description;
+
+ private String className;
+
+ private String listenerInterface;
+
+ private String sourceInterface;
+
+}
Property changes on:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/EventBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/FacetBean.java
===================================================================
--- branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/FacetBean.java
(rev 0)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/FacetBean.java 2009-06-12
23:51:00 UTC (rev 14609)
@@ -0,0 +1,37 @@
+/*
+ * $Id$
+ *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.cdk.model;
+
+/**
+ * <p class="changed_added_4_0"></p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+public class FacetBean {
+
+ private String name;
+
+ private String description;
+
+}
Property changes on:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/FacetBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java
===================================================================
--- branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java
(rev 0)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java 2009-06-12
23:51:00 UTC (rev 14609)
@@ -0,0 +1,64 @@
+/*
+ * $Id$
+ *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.cdk.model;
+
+/**
+ * <p class="changed_added_4_0">That bean represents VDL tag</p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+public class TagBean {
+
+ /**
+ * <p class="changed_added_4_0">Tag name</p>
+ */
+ private String name;
+
+ /**
+ * <p class="changed_added_4_0">Tag library for which that tag is
belong.
+ * This is bidirectional many to one relation.</p>
+ */
+ private TagLibraryBean library;
+
+ /**
+ * <p class="changed_added_4_0">Facelets VDL tag handler
class.</p>
+ */
+ private String tagHandlerClass;
+
+ /**
+ * <p class="changed_added_4_0">Facelets VDL tag handler base class for
generation.</p>
+ */
+ private String tagHandlerSuperClass;
+
+ /**
+ * <p class="changed_added_4_0">Jsp tag class</p>
+ */
+ private String jspClass;
+
+ /**
+ * <p class="changed_added_4_0">Component that the tag creates. This in
bidirectional one to one relation.</p>
+ */
+ private ComponentBean component;
+
+}
Property changes on:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagLibraryBean.java
===================================================================
---
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagLibraryBean.java
(rev 0)
+++
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagLibraryBean.java 2009-06-12
23:51:00 UTC (rev 14609)
@@ -0,0 +1,37 @@
+/*
+ * $Id$
+ *
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.cdk.model;
+
+import java.util.List;
+
+/**
+ * <p class="changed_added_4_0">That bean represents whole tag
library.</p>
+ * @author asmirnov(a)exadel.com
+ *
+ */
+public class TagLibraryBean {
+
+ private List<TagBean> tags;
+
+}
Property changes on:
branches/jsf2.0/cdk/generator/src/main/java/org/richfaces/cdk/model/TagLibraryBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain