1 5 6 package org.exoplatform.services.jcr.impl.core.nodetype.nt; 7 8 9 import javax.jcr.nodetype.PropertyDef; 10 import javax.jcr.PropertyType; 11 12 13 import javax.jcr.nodetype.NodeDef; 14 import javax.jcr.StringValue; 15 import javax.jcr.Value; 16 import javax.jcr.nodetype.NodeType; 17 import javax.jcr.version.OnParentVersionAction; 18 import org.exoplatform.services.jcr.impl.core.nodetype.NodeTypeImpl; 19 import org.exoplatform.services.jcr.impl.core.nodetype.PropertyDefImpl; 20 21 27 28 public class Base extends NodeTypeImpl { 29 30 public Base() { 31 this.name = "nt:base"; 32 this.mixin = false; 33 this.declaredSupertypes = null; this.declaredNodeDefs = null; this.declaredPropertyDefs = new PropertyDef[2]; 36 this.declaredPropertyDefs[0] = new PropertyDefImpl("jcr:primaryType", this.name, PropertyType.STRING, 37 null, null, true, true, 38 OnParentVersionAction.COMPUTE, true, false, false); 39 40 this.declaredPropertyDefs[1] = new PropertyDefImpl("jcr:mixinType", this.name, PropertyType.STRING, 41 null, null, false, false, 42 OnParentVersionAction.COMPUTE, true, false, true); 43 44 } 45 46 } 47 | Popular Tags |