1 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 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 [] 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 |