1 package org.opencrx.kernel.base.cci; 14 15 public class StringReplacementClassImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefClass_1 17 implements StringReplacementClass { 18 19 public StringReplacementClassImpl( 20 org.openmdx.base.accessor.jmi.cci.RefPackage_1_0 refPackage 21 ) { 22 super(refPackage); 23 } 24 25 public String refMofId( 26 ) { 27 return "org:opencrx:kernel:base:StringReplacement"; 28 } 29 30 public StringReplacement getStringReplacement( 31 Object object 32 ) { 33 try { 34 if(object instanceof org.openmdx.base.accessor.jmi.cci.RefObject_1_0) { 35 java.util.List args = new java.util.ArrayList (); 36 args.add(object); 37 StringReplacement target = (StringReplacement)refCreateInstance( 38 args 39 ); 40 return target; 41 } else { 42 return (StringReplacement)((org.openmdx.base.accessor.jmi.cci.RefPackage_1_0)this.refOutermostPackage()).refObject( 43 object instanceof org.openmdx.compatibility.base.naming.Path 44 ? ((org.openmdx.compatibility.base.naming.Path)object).toXri() 45 : ((org.openmdx.base.accessor.generic.cci.Object_1_0)object).objGetPath().toXri() 46 ); 47 } 48 } 49 catch(org.openmdx.base.exception.ServiceException e) { 50 throw new org.openmdx.base.accessor.jmi.cci.JmiServiceException(e); 51 } 52 } 53 54 public StringReplacement createStringReplacement( 55 ) { 56 StringReplacement target = (StringReplacement)refCreateInstance( 57 null 58 ); 59 return target; 60 } 61 public StringReplacement createStringReplacement( 65 short accessLevelBrowse 66 , short accessLevelDelete 67 , short accessLevelUpdate 68 , String newString 69 ) { 70 StringReplacementImpl _object = (StringReplacementImpl)createStringReplacement(); 71 _object.setAccessLevelBrowse(accessLevelBrowse); 72 _object.setAccessLevelDelete(accessLevelDelete); 73 _object.setAccessLevelUpdate(accessLevelUpdate); 74 _object.setNewString(newString); 75 return _object; 76 } 77 78 public StringReplacement extendSecureObject( 82 org.opencrx.kernel.base.cci.SecureObject _base 83 , String newString 84 ) { 85 StringReplacementImpl _object = (StringReplacementImpl)getStringReplacement(_base); 86 _object.setNewString(newString); 87 return _object; 88 } 89 90 public StringReplacement extendTemplateReplacement( 94 org.opencrx.kernel.base.cci.TemplateReplacement _base 95 , String newString 96 ) { 97 StringReplacementImpl _object = (StringReplacementImpl)getStringReplacement(_base); 98 _object.setNewString(newString); 99 return _object; 100 } 101 102 public StringReplacement extendBasicObject( 106 org.openmdx.base.cci.BasicObject _base 107 , short accessLevelBrowse 108 , short accessLevelDelete 109 , short accessLevelUpdate 110 , String newString 111 ) { 112 StringReplacementImpl _object = (StringReplacementImpl)getStringReplacement(_base); 113 _object.setAccessLevelBrowse(accessLevelBrowse); 114 _object.setAccessLevelDelete(accessLevelDelete); 115 _object.setAccessLevelUpdate(accessLevelUpdate); 116 _object.setNewString(newString); 117 return _object; 118 } 119 120 public StringReplacement extendContextCapable( 124 org.openmdx.base.cci.ContextCapable _base 125 , short accessLevelBrowse 126 , short accessLevelDelete 127 , short accessLevelUpdate 128 , String newString 129 ) { 130 StringReplacementImpl _object = (StringReplacementImpl)getStringReplacement(_base); 131 _object.setAccessLevelBrowse(accessLevelBrowse); 132 _object.setAccessLevelDelete(accessLevelDelete); 133 _object.setAccessLevelUpdate(accessLevelUpdate); 134 _object.setNewString(newString); 135 return _object; 136 } 137 138 public StringReplacement extendExtentCapable( 142 org.openmdx.base.cci.ExtentCapable _base 143 , short accessLevelBrowse 144 , short accessLevelDelete 145 , short accessLevelUpdate 146 , String newString 147 ) { 148 StringReplacementImpl _object = (StringReplacementImpl)getStringReplacement(_base); 149 _object.setAccessLevelBrowse(accessLevelBrowse); 150 _object.setAccessLevelDelete(accessLevelDelete); 151 _object.setAccessLevelUpdate(accessLevelUpdate); 152 _object.setNewString(newString); 153 return _object; 154 } 155 156 public StringReplacement extendViewCapable( 160 org.openmdx.compatibility.view1.cci.ViewCapable _base 161 , short accessLevelBrowse 162 , short accessLevelDelete 163 , short accessLevelUpdate 164 , String newString 165 ) { 166 StringReplacementImpl _object = (StringReplacementImpl)getStringReplacement(_base); 167 _object.setAccessLevelBrowse(accessLevelBrowse); 168 _object.setAccessLevelDelete(accessLevelDelete); 169 _object.setAccessLevelUpdate(accessLevelUpdate); 170 _object.setNewString(newString); 171 return _object; 172 } 173 174 } 178 | Popular Tags |