incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r354163 - in /incubator/graffito/trunk/jcr/jcr-mapping/src: ./ docbook/ docbook/test-docbook.xml dtd/ dtd/graffito-jcr-mapping.dtd
Date Mon, 05 Dec 2005 20:34:14 GMT
Author: clombart
Date: Mon Dec  5 12:34:06 2005
New Revision: 354163

URL: http://svn.apache.org/viewcvs?rev=354163&view=rev
Log:
Move jcr-mapping project

Added:
    incubator/graffito/trunk/jcr/jcr-mapping/src/
    incubator/graffito/trunk/jcr/jcr-mapping/src/docbook/
    incubator/graffito/trunk/jcr/jcr-mapping/src/docbook/test-docbook.xml
    incubator/graffito/trunk/jcr/jcr-mapping/src/dtd/
    incubator/graffito/trunk/jcr/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd

Added: incubator/graffito/trunk/jcr/jcr-mapping/src/docbook/test-docbook.xml
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/docbook/test-docbook.xml?rev=354163&view=auto
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/docbook/test-docbook.xml (added)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/docbook/test-docbook.xml Mon Dec  5 12:34:06
2005
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article lang="fr-FR"><sect1><title>Test</title>
+<para/>
+<para/>
+<para>This is a test </para>
+<para/>
+<para/>
+<informaltable frame="all">
+<tgroup cols="5">
+<colspec colnum="1" colname="c1"/>
+<colspec colnum="2" colname="c2"/>
+<colspec colnum="3" colname="c3"/>
+<colspec colnum="4" colname="c4"/>
+<colspec colnum="5" colname="c5"/>
+<thead>
+<row>
+<entry>
+<para>Col1</para>
+</entry>
+<entry>
+<para>Col2</para>
+</entry>
+<entry>
+<para>Col3</para>
+</entry>
+<entry>
+<para>Col4</para>
+</entry>
+</row>
+</thead><tbody>
+<row>
+<entry>
+<para>kklkl</para>
+</entry>
+<entry>
+<para>kkk</para>
+</entry>
+<entry>
+<para>klkl</para>
+</entry>
+<entry>
+<para>kp</para>
+</entry>
+</row></tbody></tgroup>
+</informaltable>
+<para/></sect1></article>

Added: incubator/graffito/trunk/jcr/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd?rev=354163&view=auto
==============================================================================
--- incubator/graffito/trunk/jcr/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd (added)
+++ incubator/graffito/trunk/jcr/jcr-mapping/src/dtd/graffito-jcr-mapping.dtd Mon Dec  5 12:34:06
2005
@@ -0,0 +1,120 @@
+<!--
+/*
+ * Copyright 2004-2005 The Apache Software Foundation or its licensors,
+ *                     as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<!ELEMENT graffito-jcr (class-descriptor*)>
+<!--
+    Class descriptor - Each class descriptor describes the mapping strategy used for one
a java class
+    * className : the className
+    * jcrNodeType : the primary jcr node type, it can be nt:unstructured
+    * jcrSuperTypes : the jcr super types, optional
+-->
+<!ELEMENT class-descriptor (field-descriptor*, bean-descriptor*, collection-descriptor*)>
+
+<!ATTLIST class-descriptor
+	className CDATA #REQUIRED
+	jcrNodeType CDATA #IMPLIED
+        jcrSuperTypes CDATA #IMPLIED>
+
+<!--
+    Field descriptor - A field descriptor maps one atomic object attribute (primitive types,
String, Long, ...)  into a JCR property
+    * fieldName : the field/attribute name
+    * jcrName : the jcr property name (optional). If it is not defined, fieldname is used
to specify the jcr property name
+    * id : specifies if the field is an id. Id is optional. If the class contains an id field,
some process can run faster
+    * path : specified if the fiels is the object path
+    * jcrType: specifies the JCR property type (supported jcr property types: STRING, DATE,
LONG, DOUBLE, BOOLEAN), optional
+    * jcrAutoCreated: specifies if this JCR property will be autocreated (true/false / default
is false), optional
+    * jcrMandatory: specifies if this JCR property is mandatory (true/false / default is
false), optional
+    * jcrOnParentVersion: specifies how this JCR property acts on inherited versioned node
properties (default is COPY), optional
+    * jcrProtected: specifies if this JCR node property is protected (true/false / default
is false), optional
+    * jcrMultiple: specifies if this JCR node property is a multivalued property (true/false
/ default is false), optional
+-->
+
+<!ELEMENT field-descriptor EMPTY>
+<!ATTLIST field-descriptor
+	fieldName CDATA #REQUIRED
+	jcrName CDATA #IMPLIED 
+	id (true | false) "false"
+	path (true | false) "false"
+        jcrType (String | Date | Long | Double | Boolean | Binary) #IMPLIED
+        jcrAutoCreated (true | false) "false"
+        jcrMandatory (true | false) "false"
+        jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) "COPY"
+        jcrProtected (true | false) "false"
+        jcrMultiple (true | false) "false"
+>
+
+<!--
+    Bean descriptor - A bean descriptor maps one "complex" object attribute into a JCR node.
+    * fieldName : the field/attribute name
+    * jcrName : the jcr node name (optional). If it is not defined, fieldname is used to
specify the jcr node name
+    * proxy : Use lazy loading or not. if true, this attributes is not loaded when the main
object is retrieved. it will be loaded when the get method is called.
+    * jcrNodeType: defines the child node type, optional
+    * jcrAutoCreated (boolean) default is "false"
+    * jcrMandatory (boolean) default is "false"
+    * jcrOnParentVersion default is "COPY"
+    * jcrProtected (boolean) default is "false"
+    * jcrSameNameSiblings (boolean) default is "false"   
+-->
+<!ELEMENT bean-descriptor EMPTY>
+<!ATTLIST bean-descriptor
+	fieldName CDATA #REQUIRED
+	jcrName CDATA #IMPLIED 
+	proxy (true | false) "false" 
+	jcrNodeType CDATA #IMPLIED
+        jcrAutoCreated (true | false) "false"   
+        jcrMandatory (true | false) "false"
+        jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) "COPY"
+        jcrProtected (true | false) "false"
+        jcrSameNameSiblings (true | false) "false"         
+>
+
+<!--
+    Collection descriptor - A collection descriptor maps one object attribute based on a
collection (or a map) into a series of JCR nodes.
+    * fieldName : the field/attribute name (matching to the collection attribute)
+    * jcrName : the jcr property name (optional). If it is not defined, fieldname is used
to specify the jcr node name
+    * proxy : Use lazy loading or not. if true, this attributes is not loaded when the main
object is retrieve. it will be loaded when the get method is called.
+    * elementClassName : contains a fully qualified class name.	This class is the Object
type of the persistent collection elements.
+    * collectionClassName : contains a fully qualified class name. This class must be the
Java type of the Collection attribute. 	
+                            This attribute must only specified if the attribute type is not
a java.util.Collection (or subclass). 
+                            The declared class must implement ManageableCollection to let
the persistence engine handles this type of collection.
+    * collectionConverter : The class name converter. This is the collection mapping strategy
to used. 
+                            If this attribute is not specify, the default collection mapping
strategy is used (DefaultCollectionConverterImpl)
+    * jcrNodeType: defines the child node type, optional
+    * jcrAutoCreated (boolean) default is "false"
+    * jcrMandatory (boolean) default is "false"
+    * jcrOnParentVersion default is "COPY"
+    * jcrProtected (boolean) default is "false"
+    * jcrSameNameSiblings (boolean) default is "false"
+-->
+
+<!ELEMENT collection-descriptor EMPTY>
+<!ATTLIST collection-descriptor
+	fieldName CDATA #REQUIRED
+	jcrName CDATA #IMPLIED 
+	proxy (true | false) "false"
+	elementClassName CDATA #REQUIRED
+	collectionClassName CDATA #IMPLIED
+	collectionConverter CDATA #IMPLIED
+	jcrNodeType CDATA #IMPLIED
+        jcrAutoCreated (true | false) "false"   
+        jcrMandatory (true | false) "false"
+        jcrOnParentVersion (COPY | VERSION | INITIALIZE | COMPUTE | IGNORE | ABORT) "COPY"
+        jcrProtected (true | false) "false"
+        jcrSameNameSiblings (true | false) "false"	
+>



Mime
View raw message