KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > jcr > impl > core > nodetype > nt > Query


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  */

5
6 package org.exoplatform.services.jcr.impl.core.nodetype.nt;
7
8
9 import javax.jcr.PropertyType;
10 import javax.jcr.version.OnParentVersionAction;
11 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl;
12 import org.exoplatform.services.jcr.impl.core.nodetype.PropertyDefImpl;
13
14 /**
15  * Created y the eXo platform team
16  * User: Benjamin Mestrallet
17  * Date: 31 juil. 2004
18  */

19 public class Query extends NodeTypeImpl {
20   //name, declaringNodeType, requiredType,
21
// vlueConstraint, defaultValue, autoCreate, mandatory,
22
// onVersion, readOnly, primaryItem, multiple)
23

24   public Query() {
25     this.name = "nt:query";
26     this.mixin = false;
27     this.declaredSupertypes = new javax.jcr.nodetype.NodeType[1];
28     this.declaredSupertypes[0] = new Base();
29     this.declaredPropertyDefs = new javax.jcr.nodetype.PropertyDef[2];
30     this.declaredPropertyDefs[0] = new PropertyDefImpl("jcr:statement", null, PropertyType.STRING,
31         null, null, false, false,
32         OnParentVersionAction.COPY, false, false, false);
33     this.declaredPropertyDefs[1] = new PropertyDefImpl("jcr:language", null, PropertyType.STRING,
34         null, null, false, false,
35         OnParentVersionAction.COPY, false, false, false);
36   }
37 }
38
Popular Tags