1 package org.opencrx.kernel.contract1.cci; 14 15 public class ContractReferenceHolderImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements ContractReferenceHolder { 18 19 public ContractReferenceHolderImpl( 20 org.openmdx.base.accessor.generic.cci.Object_1_0 object, 21 javax.jmi.reflect.RefClass refClass 22 ) { 23 super(object, refClass); 24 } 25 26 public void setContract( 30 java.util.List newValue 31 ) { 32 refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contract", newValue); 33 } 34 35 public void setContract( 36 org.opencrx.kernel.contract1.cci.AbstractContract[] newValue 37 ) { 38 refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contract", newValue); 39 } 40 41 public org.opencrx.kernel.contract1.cci.AbstractContract getContract( 45 int index 46 ) { 47 return (org.opencrx.kernel.contract1.cci.AbstractContract)refGetValue( 48 "org:opencrx:kernel:contract1:ContractReferenceHolder:contract", 49 new Integer (index) 50 ); 51 } 52 53 public java.util.Collection getContract( 57 ) { 58 return (java.util.Collection )refGetValue( 59 "org:opencrx:kernel:contract1:ContractReferenceHolder:contract" 60 ); 61 } 62 63 public void addContract ( 67 int index, 68 org.opencrx.kernel.contract1.cci.AbstractContract newValue 69 ) { 70 refAddValue( 71 "org:opencrx:kernel:contract1:ContractReferenceHolder:contract", 72 new Integer (index), 73 newValue 74 ); 75 } 76 77 public void addContract ( 81 org.opencrx.kernel.contract1.cci.AbstractContract newValue 82 ) { 83 refAddValue( 84 "org:opencrx:kernel:contract1:ContractReferenceHolder:contract", 85 newValue 86 ); 87 } 88 89 public void removeContract ( 93 int index 94 ) { 95 refRemoveValue( 96 "org:opencrx:kernel:contract1:ContractReferenceHolder:contract", 97 new Integer (index) 98 ); 99 } 100 101 protected void setContractRole( 105 java.util.List newValue 106 ) { 107 refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", newValue); 108 } 109 110 protected void setContractRole( 111 org.opencrx.kernel.contract1.cci.ContractRole[] newValue 112 ) { 113 refSetValue("org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", newValue); 114 } 115 116 public org.opencrx.kernel.contract1.cci.ContractRole getContractRole( 120 String id 121 ) { 122 return (org.opencrx.kernel.contract1.cci.ContractRole)refGetValue( 123 "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", 124 id 125 ); 126 } 127 128 public java.util.Collection getContractRole( 132 ) { 133 return (java.util.Collection )refGetValue( 134 "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole" 135 ); 136 } 137 138 public java.util.List getContractRole( 139 org.opencrx.kernel.contract1.cci.ContractRoleFilter filter 140 ) { 141 return ((org.openmdx.compatibility.base.collection.Container)refGetValue( 142 "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole" 143 )).toList(filter); 144 } 145 146 protected void addContractRole ( 150 String id, 151 org.opencrx.kernel.contract1.cci.ContractRole newValue 152 ) { 153 refAddValue( 154 "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", 155 id, 156 newValue 157 ); 158 } 159 160 protected void addContractRole ( 164 org.opencrx.kernel.contract1.cci.ContractRole newValue 165 ) { 166 refAddValue( 167 "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", 168 newValue 169 ); 170 } 171 172 protected void removeContractRole ( 176 String id 177 ) { 178 refRemoveValue( 179 "org:opencrx:kernel:contract1:ContractReferenceHolder:contractRole", 180 id 181 ); 182 } 183 184 } 188 | Popular Tags |