You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2009/11/21 14:11:23 UTC

svn commit: r882893 - /ofbiz/site/dtds/datafiles.xsd

Author: jleroux
Date: Sat Nov 21 13:11:22 2009
New Revision: 882893

URL: http://svn.apache.org/viewvc?rev=882893&view=rev
Log:
Updates datafiles.xsd, related to revision 882892  

Modified:
    ofbiz/site/dtds/datafiles.xsd

Modified: ofbiz/site/dtds/datafiles.xsd
URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/datafiles.xsd?rev=882893&r1=882892&r2=882893&view=diff
==============================================================================
--- ofbiz/site/dtds/datafiles.xsd (original)
+++ ofbiz/site/dtds/datafiles.xsd Sat Nov 21 13:11:22 2009
@@ -92,11 +92,37 @@
         </xs:complexType>
     </xs:element>
     <xs:attributeGroup name="attlist.field">
-        <xs:attribute name="name" use="required"/>
+        <xs:attribute name="name" type="xs:string" use="required"/>
         <xs:attribute name="position"/>
         <xs:attribute name="length"/>
-        <xs:attribute name="type" use="required"/>
-        <xs:attribute name="format"/>
+        <xs:attribute name="type" use="required">
+            <xs:annotation><xs:documentation>The field type is always required. See more about the type attribure in Record.setString() method</xs:documentation></xs:annotation>
+            <xs:simpleType>
+                <xs:restriction base="xs:token">
+                    <xs:enumeration value="CustomDate"/>
+                    <xs:enumeration value="CustomTime"/>
+                    <xs:enumeration value="FixedPointDouble"/>
+                    <xs:enumeration value="java.lang.String"/>
+                    <xs:enumeration value="String"/>
+                    <xs:enumeration value="java.sql.Timestamp"/>
+                    <xs:enumeration value="Timestamp"/>
+                    <xs:enumeration value="java.sql.Time"/>
+                    <xs:enumeration value="Time"/>
+                    <xs:enumeration value="java.lang.Integer"/>
+                    <xs:enumeration value="Integer"/>
+                    <xs:enumeration value="java.lang.Long"/>
+                    <xs:enumeration value="Long"/>
+                    <xs:enumeration value="java.lang.Float"/>
+                    <xs:enumeration value="Float"/>
+                    <xs:enumeration value="java.lang.Double"/>
+                    <xs:enumeration value="Double"/>
+                </xs:restriction>
+       </xs:simpleType>
+       </xs:attribute>
+        <xs:attribute name="format">
+            <xs:annotation><xs:documentation>You may use EncryptedString if you want to encrypt the string (password for instance). See more in Record.setString() method.</xs:documentation></xs:annotation>
+        </xs:attribute>
+        
         <xs:attribute name="valid-exp"/>
         <xs:attribute name="description"/>
         <xs:attribute name="default-value"/>