KickJava   Java API By Example, From Geeks To Geeks.

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


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.nodetype.PropertyDef;
10 import javax.jcr.PropertyType;
11
12
13 import javax.jcr.nodetype.NodeDef;
14 import javax.jcr.StringValue;
15 import javax.jcr.Value;
16 import javax.jcr.nodetype.NodeType;
17 import javax.jcr.version.OnParentVersionAction;
18 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl;
19 import org.exoplatform.services.jcr.impl.core.nodetype.PropertyDefImpl;
20
21 /**
22  * Created by The eXo Platform SARL .
23  *
24  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
25  * @version $Id: Base.java,v 1.2 2004/07/08 23:36:48 benjmestrallet Exp $
26  */

27
28 public class Base extends NodeTypeImpl {
29
30   public Base() {
31     this.name = "nt:base";
32     this.mixin = false;
33     this.declaredSupertypes = null; //new NodeType[0];
34
this.declaredNodeDefs = null; //new NodeDef[0];
35
this.declaredPropertyDefs = new PropertyDef[2];
36     this.declaredPropertyDefs[0] = new PropertyDefImpl("jcr:primaryType", this.name, PropertyType.STRING,
37         null, null, true, true,
38         OnParentVersionAction.COMPUTE, true, false, false);
39
40     this.declaredPropertyDefs[1] = new PropertyDefImpl("jcr:mixinType", this.name, PropertyType.STRING,
41         null, null, false, false,
42         OnParentVersionAction.COMPUTE, true, false, true);
43
44   }
45
46 }
47
Popular Tags