1 5 6 package org.exoplatform.services.jcr.impl.core.nodetype.nt; 7 8 9 import javax.jcr.nodetype.NodeType; 10 import javax.jcr.nodetype.NodeDef; 11 12 13 import javax.jcr.version.OnParentVersionAction; 14 import org.exoplatform.services.jcr.impl.core.nodetype.NodeDefImpl; 15 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl; 16 17 23 24 public class File extends NodeTypeImpl { 25 26 public File() { 27 this.name = "nt:file"; 28 this.mixin = false; 29 this.declaredSupertypes = new NodeType[1]; 30 this.declaredSupertypes[0] = new HierarchyItem(); 31 this.declaredNodeDefs = new NodeDef[1]; 32 String [] types = {"nt:content"}; 33 String [] defMixinTypes = {"mix:referenceable"}; 34 String [] reqMixinTypes = {"mix:referenceable"}; 35 this.declaredNodeDefs[0] = new NodeDefImpl("jcr:content", types, "nt:content", 36 reqMixinTypes, defMixinTypes, 37 true, false, OnParentVersionAction.VERSION, false, true, 38 false); 39 40 } 41 42 } 43 | Popular Tags |