1 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 19 public class ChildNodeDef extends NodeTypeImpl { 20 24 public ChildNodeDef() { 25 this.name = "nt:childNodeDef"; 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[10]; 30 this.declaredPropertyDefs[0] = new PropertyDefImpl("jcr:name", null, PropertyType.STRING, 31 null, null, true, true, 32 OnParentVersionAction.COPY, false, false, false); 33 this.declaredPropertyDefs[1] = new PropertyDefImpl("jcr:requiredPrimaryTypes", null, PropertyType.STRING, 34 null, null, true, true, 35 OnParentVersionAction.COPY, false, false, true); 36 this.declaredPropertyDefs[2] = new PropertyDefImpl("jcr:defaultPrimaryType", null, PropertyType.STRING, 37 null, null, true, true, 38 OnParentVersionAction.COPY, false, false, false); 39 this.declaredPropertyDefs[3] = new PropertyDefImpl("jcr:requiredMixinTypes", null, PropertyType.STRING, 40 null, null, true, true, 41 OnParentVersionAction.COPY, false, false, true); 42 this.declaredPropertyDefs[4] = new PropertyDefImpl("jcr:defaultMixinTypes", null, PropertyType.STRING, 43 null, null, true, true, 44 OnParentVersionAction.COPY, false, false, true); 45 this.declaredPropertyDefs[5] = new PropertyDefImpl("jcr:autoCreate", null, PropertyType.BOOLEAN, 46 null, null, true, true, 47 OnParentVersionAction.COPY, false, false, false); 48 this.declaredPropertyDefs[6] = new PropertyDefImpl("jcr:onParentVersion", null, PropertyType.STRING, 49 null, null, true, true, 50 OnParentVersionAction.COPY, false, false, false); 51 this.declaredPropertyDefs[7] = new PropertyDefImpl("jcr:readOnly", null, PropertyType.BOOLEAN, 52 null, null, true, true, 53 OnParentVersionAction.COPY, false, false, false); 54 this.declaredPropertyDefs[8] = new PropertyDefImpl("jcr:primaryItem", null, PropertyType.BOOLEAN, 55 null, null, true, true, 56 OnParentVersionAction.COPY, false, false, false); 57 this.declaredPropertyDefs[9] = new PropertyDefImpl("jcr:sameNameSibs", null, PropertyType.BOOLEAN, 58 null, null, true, true, 59 OnParentVersionAction.COPY, false, false, false); 60 } 61 } 62 | Popular Tags |