1 5 6 package org.exoplatform.services.jcr.impl.core.nodetype.nt; 7 8 9 import javax.jcr.nodetype.*; 10 import javax.jcr.PropertyType; 11 import javax.jcr.version.OnParentVersionAction; 12 import org.exoplatform.services.jcr.impl.core.nodetype.NodeDefImpl; 13 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl; 14 import org.exoplatform.services.jcr.impl.core.nodetype.PropertyDefImpl; 15 16 21 public class NodeType extends NodeTypeImpl { 22 26 public NodeType() { 27 this.name = "nt:nodeType"; 28 this.mixin = false; 29 this.declaredSupertypes = new javax.jcr.nodetype.NodeType[1]; 30 this.declaredSupertypes[0] = new Base(); 31 this.declaredPropertyDefs = new PropertyDef[2]; 32 this.declaredPropertyDefs[0] = new PropertyDefImpl("jcr:nodeTypeName", null, PropertyType.STRING, 33 null, null, true, true, 34 OnParentVersionAction.COPY, false, false, false); 35 this.declaredPropertyDefs[1] = new PropertyDefImpl("jcr:supertypes", null, PropertyType.STRING, 36 null, null, true, false, 37 OnParentVersionAction.COPY, false, false, true); 38 this.declaredNodeDefs = new NodeDef[2]; 39 String [] types = {"nt:propertyDef"}; 40 this.declaredNodeDefs[0] = new NodeDefImpl("jcr:propertyDef", types, "nt:propertyDef", 41 null, null, 42 false, false, OnParentVersionAction.VERSION, false, false, 43 true); 44 types[0] = "nt:childNodeDef"; 45 this.declaredNodeDefs[1] = new NodeDefImpl("jcr:childNodeDef", types, "nt:childNodeDef", 46 null, null, 47 false, false, OnParentVersionAction.VERSION, false, false, 48 true); 49 } 50 51 } 52 | Popular Tags |