User: ko5tik
Date: 02/04/18 04:42:39
Modified: src/java xdoclet-tags.dtd xdoclet-tags.xml
Log:
implemented default parameter values
Revision Changes Path
1.9 +7 -2 xdocletgui/src/java/xdoclet-tags.dtd
Index: xdoclet-tags.dtd
===================================================================
RCS file: /cvsroot/xdoclet/xdocletgui/src/java/xdoclet-tags.dtd,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -r1.8 -r1.9
--- xdoclet-tags.dtd 17 Apr 2002 15:10:27 -0000 1.8
+++ xdoclet-tags.dtd 18 Apr 2002 11:42:39 -0000 1.9
@@ -62,7 +62,7 @@
option-set will be used. If no condition is specified,
the option-set will apply to any circumstance.
-->
-<!ELEMENT option-set (options, condition?)>
+<!ELEMENT option-set (default? , options, condition?)>
<!--
@@ -84,7 +84,7 @@
text AND no options -> textfield
text AND options -> combo
-->
-<!ELEMENT parameter (name, usage-description, mandatory, condition-description?,
condition?, option-sets?)>
+<!ELEMENT parameter (name, usage-description, mandatory, default? ,
condition-description?, condition?, option-sets?)>
<!ATTLIST parameter
type (text | bool) #REQUIRED
@@ -131,3 +131,8 @@
Root element
-->
<!ELEMENT xdoclet (namespace+)>
+
+<!--
+default value to select from option or for tag parameter upon creation
+-->
+<!ELEMENT default (#PCDATA)>
1.12 +61 -5 xdocletgui/src/java/xdoclet-tags.xml
Index: xdoclet-tags.xml
===================================================================
RCS file: /cvsroot/xdoclet/xdocletgui/src/java/xdoclet-tags.xml,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -r1.11 -r1.12
--- xdoclet-tags.xml 17 Apr 2002 15:10:27 -0000 1.11
+++ xdoclet-tags.xml 18 Apr 2002 11:42:39 -0000 1.12
@@ -47,9 +47,7 @@
<tag>
<name>ejb:bean</name>
<usage-description>
- The ejb:bean tag provides information about the EJB. It is the one
compulsory
- tag for all EJBs, however not all parameters are applicable for all
types of
- beans, and some parameters apply differently for different types of
bean.
+ The ejb:bean tag provides information about the EJB. It is the one compulsory
tag for all EJBs, however not all parameters are applicable for all types of beans,
and some parameters apply differently for different types of bean.
</usage-description>
<unique>true</unique>
<condition-description>applicable for all EJB types</condition-description>
@@ -473,10 +471,12 @@
</tag>
<tag>
<name>ejb:dao</name>
- <usage-description>
+ <usage-description>>
+ <![CDATA[
Defines the data access object of an entity bean. If the <dao/> subtask is
included, then DAO interfaces will be generated for any entity beans
containing this tag, unless a generate="false" parameter is present.
+ ]]>
</usage-description>
<unique>true</unique>
<condition-description>Entity bean</condition-description>
@@ -736,6 +736,62 @@
<option>RequiresNew</option>
<option>Mandatory</option>
<option>Never</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ </tag>
+ <tag>
+ <name>ejb:env-entry</name>
+ <usage-description>Defines an environment entry for an EJB.
</usage-description>
+ <condition-description>Applicable to all EJB types.</condition-description>
+ <condition type="and">
+ <condition type="class">
+ </condition>
+ <condition type="or">
+ <condition type="type">
+ <condition-parameter>javax.ejb.EntityBean</condition-parameter>
+ </condition>
+ <condition type="type">
+ <condition-parameter>javax.ejb.SessionBean</condition-parameter>
+ </condition>
+ <condition type="type">
+ <condition-parameter>javax.ejb.MessageDrivenBean</condition-parameter>
+ </condition>
+ </condition>
+ </condition>
+ <parameter type="text">
+ <name>name</name>
+ <usage-description>The name of the env-entry</usage-description>
+ <mandatory>true</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>description</name>
+ <usage-description>Optional description of the env-entry</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>type</name>
+ <usage-description>
+ The type of the env-entry, eg
+ java.lang.String. Supported types outlined in
+ the EJB spec.
+ "type" is optional, the default is java.lang.Sting.
+ </usage-description>
+ <mandatory>false</mandatory>
+ <option-sets>
+ <option-set>
+ <default>java.lang.String</default>
+ <options>
+ <option>java.lang.Boolean</option>
+ <option>java.lang.Byte</option>
+ <option>java.lang.Character</option>
+ <option>java.lang.String</option>
+ <option>java.lang.Short</option>
+ <option>java.lang.Integer</option>
+ <option>java.lang.Long</option>
+ <option>java.lang.Float</option>
+ <option>java.lang.Double</option>
</options>
</option-set>
</option-sets>
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel