KickJava   Java API By Example, From Geeks To Geeks.

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


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

31
32 public class Default extends NodeTypeImpl {
33
34   public Default() {
35     this.name = "nt:default";
36     this.mixin = false;
37     this.declaredSupertypes = new NodeType[1];
38     this.declaredSupertypes[0] = new Base();
39     this.declaredPropertyDefs = new PropertyDef[1];
40     this.declaredPropertyDefs[0] = new PropertyDefImpl(null, null, PropertyType.UNDEFINED,
41         null, null, false, false,
42         OnParentVersionAction.COPY, false, false, true);
43
44     this.declaredNodeDefs = new NodeDef[1];
45     String JavaDoc[] types = {"nt:base"};
46     this.declaredNodeDefs[0] = new NodeDefImpl(null, types, "nt:default",
47         null, null,
48         false, false, OnParentVersionAction.VERSION, false, false,
49         true);
50
51   }
52
53 }
54
Popular Tags