1 21 22 package org.omg.mof.Model ; 24 public class CanRaiseImpl extends org.omg.mof.Model.CanRaisePOA { 25 org.omg.mof.Model._ModelPackage _model_package; 26 public java.lang.String ref_mof_id(){ 29 int id = _orb().object_to_string(_this()).hashCode(); 30 return String.valueOf(id); 31 } 32 public org.omg.mof.Reflective.RefObject ref_meta_object(){ 34 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_meta_object method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 35 } 36 public boolean ref_itself(org.omg.mof.Reflective.RefBaseObject other_object){ 38 String id_obj = other_object.ref_mof_id(); 39 if (ref_mof_id().equals(id_obj)) return true; 40 else return false; 41 } 42 public org.omg.mof.Reflective._RefPackage ref_immediate_package(){ 44 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_immediate_package method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 45 } 46 public org.omg.mof.Reflective._RefPackage ref_outermost_package(){ 48 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_moutermost_package method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 49 } 50 public void ref_delete() throws org.omg.mof.Reflective.MofError { 52 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_delete method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 53 } 54 55 public org.omg.mof.Reflective.RefObject[][] ref_all_links(){ 57 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_all_links method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 58 } 59 public boolean ref_link_exists(org.omg.mof.Reflective.RefObject[] some_link) 61 throws org.omg.mof.Reflective.MofError{ 62 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_link_exists method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 63 } 64 public org.omg.mof.Reflective.RefObject[] ref_query(org.omg.mof.Reflective.RefObject query_end, org.omg.mof.Reflective.RefObject query_object) 66 throws org.omg.mof.Reflective.MofError{ 67 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_query method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 68 } 69 public void ref_add_link(org.omg.mof.Reflective.RefObject[] new_link) 71 throws org.omg.mof.Reflective.MofError{ 72 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_add_link method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 73 } 74 public void ref_add_link_before(org.omg.mof.Reflective.RefObject[] new_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject before) 76 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 77 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_add_link_before method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 78 } 79 public void ref_modify_link(org.omg.mof.Reflective.RefObject[] old_link, org.omg.mof.Reflective.RefObject position_end, org.omg.mof.Reflective.RefObject new_object) 81 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 82 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_modify_link method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 83 } 84 public void ref_remove_link(org.omg.mof.Reflective.RefObject[] old_link) 86 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 87 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_remove_link method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 88 } 89 private java.util.Vector _all_can_raise = new java.util.Vector (); 90 public org.omg.mof.Model.CanRaiseLink[] all_can_raise_Links() throws org.omg.mof.Reflective.MofError { 92 org.omg.mof.Model.CanRaiseLink[] temp1 = new org.omg.mof.Model.CanRaiseLink [_all_can_raise.size()]; 93 for (int i=0; i< _all_can_raise.size();i++) temp1[i]= (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 94 return temp1; 95 } 96 public boolean exists(org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.MofError { 98 boolean exist = false; 99 int i= 0; 100 while((i< _all_can_raise.size())&& !exist){ 101 org.omg.mof.Model.CanRaiseLink temp1 = (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 102 if (temp1.operation._is_equivalent(operation) && temp1.except._is_equivalent(except)) exist = true; 103 i++; 104 } 105 return exist ; 106 } 107 public org.omg.mof.Model.Operation[] operation (org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.MofError { 109 java.util.Vector temp1 = new java.util.Vector (); 110 for (int i=0; i< _all_can_raise.size(); i++){ 111 org.omg.mof.Model.CanRaiseLink temp2 = (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 112 if (temp2.except._is_equivalent(except)) temp1.addElement(temp2.operation); 113 } 114 org.omg.mof.Model.Operation[] temp3 = new org.omg.mof.Model.Operation[temp1.size()]; 115 for (int i=0; i< temp1.size();i++) temp3[i]= (org.omg.mof.Model.Operation)temp1.elementAt(i); 116 return temp3; 117 } 118 public org.omg.mof.Model.MofException[] except(org.omg.mof.Model.Operation operation) throws org.omg.mof.Reflective.MofError { 120 java.util.Vector temp1 = new java.util.Vector (); 121 for (int i=0; i< _all_can_raise.size(); i++){ 122 org.omg.mof.Model.CanRaiseLink temp2= (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 123 if (temp2.operation._is_equivalent(operation)) temp1.addElement(temp2.operation); 124 } 125 org.omg.mof.Model.MofException[] temp3 = new org.omg.mof.Model.MofException[temp1.size()]; 126 for (int i=0; i< temp1.size();i++) temp3[i]= (org.omg.mof.Model.MofException)temp1.elementAt(i); 127 return temp3; 128 } 129 public void add(org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.MofError { 131 org.omg.mof.Model.CanRaiseLink temp = new org.omg.mof.Model.CanRaiseLink(operation, except); 132 _all_can_raise.addElement(temp); 133 } 134 public void add_before_except(org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except, org.omg.mof.Model.MofException before) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 136 boolean exist = false; 137 int i= 0; 138 while((i< _all_can_raise.size())&& !exist){ 139 org.omg.mof.Model.CanRaiseLink temp1= (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 140 if (temp1.except._is_equivalent(before)) exist = true; 141 i++; 142 } 143 if(exist) { 144 org.omg.mof.Model.CanRaiseLink temp = new org.omg.mof.Model.CanRaiseLink(operation, except); 145 _all_can_raise.insertElementAt(temp, i-1); 146 } 147 else throw new org.omg.mof.Reflective.NotFound() ; 148 } 149 public void modify_operation(org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except, org.omg.mof.Model.Operation new_operation) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 151 boolean exist = false; 152 int i= 0; 153 while((i< _all_can_raise.size())&& !exist){ 154 org.omg.mof.Model.CanRaiseLink temp1= (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 155 if (temp1.operation._is_equivalent(operation) && temp1.except._is_equivalent(except)) exist = true; 156 i++; 157 } 158 if(exist) { 159 org.omg.mof.Model.CanRaiseLink temp = new org.omg.mof.Model.CanRaiseLink(new_operation, except); 160 _all_can_raise.setElementAt(temp, i-1); 161 } 162 else throw new org.omg.mof.Reflective.NotFound() ; 163 } 164 public void modify_except (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except, org.omg.mof.Model.MofException new_except) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 166 boolean exist = false; 167 int i= 0; 168 while((i< _all_can_raise.size())&& !exist){ 169 org.omg.mof.Model.CanRaiseLink temp1= (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 170 if (temp1.operation._is_equivalent(operation) && temp1.except._is_equivalent(except)) exist = true; 171 i++; 172 } 173 if(exist) { 174 org.omg.mof.Model.CanRaiseLink temp = new org.omg.mof.Model.CanRaiseLink(operation, new_except); 175 _all_can_raise.setElementAt(temp, i-1); 176 } 177 else throw new org.omg.mof.Reflective.NotFound() ; 178 } 179 public void remove (org.omg.mof.Model.Operation operation, org.omg.mof.Model.MofException except) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 180 boolean exist = false; 181 int i= 0; 182 while((i< _all_can_raise.size())&& !exist){ 183 org.omg.mof.Model.CanRaiseLink temp1= (org.omg.mof.Model.CanRaiseLink)_all_can_raise.elementAt(i); 184 if (temp1.operation._is_equivalent(operation) && temp1.except._is_equivalent(except)) exist = true; 185 i++; 186 } 187 if(exist) { 188 _all_can_raise.removeElementAt(i-1); 189 } 190 else throw new org.omg.mof.Reflective.NotFound() ; 191 } 192 } 193 | Popular Tags |