1 21 22 package org.omg.mof.Model ; 24 public class TagImpl extends org.omg.mof.Model.TagPOA { 25 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 boolean ref_is_instance_of(org.omg.mof.Reflective.RefObject some_class, boolean consider_subtypes) { 58 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_is_instance_of method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 59 } 60 public org.omg.mof.Reflective.RefObject ref_create_instance(org.omg.CORBA.Any [] args) throws org.omg.mof.Reflective.MofError { 62 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_create_instance method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 63 } 64 public org.omg.mof.Reflective.RefObject[] ref_all_objects(boolean include_subtypes){ 66 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_all_objects method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 67 } 68 public void ref_set_value(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_value) throws org.omg.mof.Reflective.MofError { 70 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_set_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 71 } 72 public org.omg.CORBA.Any ref_value(org.omg.mof.Reflective.RefObject feature) throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError { 74 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 75 } 76 public void ref_unset_value() throws org.omg.mof.Reflective.MofError { 78 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_unset_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 79 } 80 public void ref_add_value(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError { 82 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_add_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 83 } 84 public void ref_add_value_before(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element, org.omg.CORBA.Any before_element) 86 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 87 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_add_value_before method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 88 } 89 public void ref_add_value_at(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element, int position) 91 throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError { 92 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_add_value_at method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 93 } 94 public void ref_modify_value(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any old_element, org.omg.CORBA.Any new_element) 96 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 97 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_modify_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 98 } 99 public void ref_modify_value_at(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any new_element, int position) 101 throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError { 102 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_modify_value_at method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 103 } 104 public void ref_remove_value(org.omg.mof.Reflective.RefObject feature, org.omg.CORBA.Any existing_element) 106 throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 107 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_remove_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 108 } 109 public void ref_remove_value_at(org.omg.mof.Reflective.RefObject feature, int position) 111 throws org.omg.mof.Reflective.BadPosition, org.omg.mof.Reflective.MofError { 112 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_remove_value_at method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 113 } 114 public org.omg.mof.Reflective.RefObject ref_immediate_composite() { 116 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_remove_value method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 117 } 118 public org.omg.mof.Reflective.RefObject ref_outermost_composite() { 120 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_outermost_composite method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 121 } 122 public org.omg.CORBA.Any ref_invoke_operation(org.omg.mof.Reflective.RefObject requested_temp, org.omg.mof.Reflective.ValueTypeListHolder args) 124 throws org.omg.mof.Reflective.OtherException, org.omg.mof.Reflective.MofError { 125 throw new org.omg.CORBA.NO_IMPLEMENT ("ref_invoke_operation( method not implemented",1 ,org.omg.CORBA.CompletionStatus.COMPLETED_NO); 126 } 127 private org.omg.mof.Model.TagClass _class_proxy; 128 public org.omg.mof.Model.ModelElement[] all_of_type_model_element() { 129 return _class_proxy.all_of_type_model_element(); 130 } 131 public org.omg.mof.Model.Tag create_tag(String name, String annotation, String tag_id, org.omg.CORBA.Any [] values) throws org.omg.mof.Reflective.MofError { 132 return _class_proxy.create_tag(name, annotation, tag_id, values); 133 } 134 public org.omg.mof.Model.Tag[] all_of_class_tag() { 135 return _class_proxy.all_of_class_tag(); 136 } 137 public org.omg.mof.Model.Tag[] all_of_type_tag() { 138 return _class_proxy.all_of_type_tag(); 139 } 140 private String _name ; 142 public String name() throws org.omg.mof.Reflective.MofError { 143 return _name; 144 } 145 public void set_name(String new_value) throws org.omg.mof.Reflective.MofError { 146 _name = new_value ; 147 } 148 149 private String _annotation ; 151 public String annotation() throws org.omg.mof.Reflective.MofError { 152 return _annotation; 153 } 154 public void set_annotation(String new_value) throws org.omg.mof.Reflective.MofError { 155 _annotation = new_value ; 156 } 157 158 private java.util.Vector _qualified_names = new java.util.Vector (); 160 public String [] qualified_name() throws org.omg.mof.Reflective.MofError{ 161 java.util.Vector _name_qualified = new java.util.Vector (); 163 _name_qualified.addElement(_name); 164 165 ModelElement _current = _this(); 167 boolean exist = true; 168 while (exist) { 169 try { 170 _current = _current.container(); 171 _name_qualified.addElement(_current.name()); 172 } 173 catch (org.omg.mof.Reflective.NotSet ex) { 174 exist = false; 175 } 176 } 177 String [] _temp = new String [_name_qualified.size()]; 178 for (int i = 0; i < _temp.length; i++) 179 _temp[i] = (String ) _name_qualified.elementAt(i); 180 return _temp; 181 } 182 183 private String _tag_id ; 185 public String tag_id() throws org.omg.mof.Reflective.MofError { 186 return _tag_id; 187 } 188 public void set_tag_id(String new_value) throws org.omg.mof.Reflective.MofError { 189 _tag_id = new_value ; 190 } 191 192 private java.util.Vector _valuess = new java.util.Vector (); 194 public org.omg.CORBA.Any [] values() throws org.omg.mof.Reflective.MofError { 195 org.omg.CORBA.Any [] temp1 = new org.omg.CORBA.Any [_valuess.size()]; 196 for(int i=0; i< _valuess.size(); i++) temp1[i] = (org.omg.CORBA.Any )_valuess.elementAt(i); 197 return temp1; 198 } 199 public void set_values(org.omg.CORBA.Any [] new_value) throws org.omg.mof.Reflective.MofError { 200 _valuess.removeAllElements(); 201 for(int i= 0; i< new_value.length ; i++) _valuess.addElement(new_value[i]); 202 } 203 public void add_values (org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.MofError{ 204 _valuess.addElement(new_element); 205 } 206 public void modify_values (org.omg.CORBA.Any old_element,org.omg.CORBA.Any new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 207 if( _valuess.contains(old_element)) { 208 int i =_valuess.indexOf(old_element); 209 _valuess.setElementAt(new_element, i); 210 } 211 else throw new org.omg.mof.Reflective.NotFound(); 212 } 213 public void remove_values (org.omg.CORBA.Any old_element ) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 214 if(_valuess.contains(old_element)) _valuess.removeElement(old_element); 215 else throw new org.omg.mof.Reflective.NotFound() ; 216 } 217 218 private org.omg.mof.Model.Namespace _container = null; 220 public org.omg.mof.Model.Namespace container() throws org.omg.mof.Reflective.NotSet, org.omg.mof.Reflective.MofError { 221 if (_container!= null) return _container; 222 else throw new org.omg.mof.Reflective.NotSet(); 223 } 224 public void set_container(org.omg.mof.Model.Namespace new_value) throws org.omg.mof.Reflective.MofError { 225 _container = new_value ; 226 } 227 public void unset_container() throws org.omg.mof.Reflective.MofError{ 228 _container = null; 229 } 230 231 private java.util.Vector _required_elementss = new java.util.Vector (); 233 public org.omg.mof.Model.ModelElement[] required_elements() throws org.omg.mof.Reflective.MofError { 234 org.omg.mof.Model.ModelElement[] temp1 = new org.omg.mof.Model.ModelElement[_required_elementss.size()]; 235 for(int i=0; i< _required_elementss.size(); i++) temp1[i] = (org.omg.mof.Model.ModelElement)_required_elementss.elementAt(i); 236 return temp1; 237 } 238 public void set_required_elements(org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError { 239 _required_elementss.removeAllElements(); 240 for(int i= 0; i< new_value.length ; i++) _required_elementss.addElement(new_value[i]); 241 } 242 public void add_required_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError{ 243 _required_elementss.addElement(new_element); 244 } 245 public void modify_required_elements (org.omg.mof.Model.ModelElement old_element,org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 246 if( _required_elementss.contains(old_element)) { 247 int i =_required_elementss.indexOf(old_element); 248 _required_elementss.setElementAt(new_element, i); 249 } 250 else throw new org.omg.mof.Reflective.NotFound(); 251 } 252 public void remove_required_elements (org.omg.mof.Model.ModelElement old_element ) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 253 if(_required_elementss.contains(old_element)) _required_elementss.removeElement(old_element); 254 else throw new org.omg.mof.Reflective.NotFound() ; 255 } 256 257 private java.util.Vector _constraintss = new java.util.Vector (); 259 public org.omg.mof.Model.Constraint[] constraints() throws org.omg.mof.Reflective.MofError { 260 org.omg.mof.Model.Constraint[] temp1 = new org.omg.mof.Model.Constraint[_constraintss.size()]; 261 for(int i=0; i< _constraintss.size(); i++) temp1[i] = (org.omg.mof.Model.Constraint)_constraintss.elementAt(i); 262 return temp1; 263 } 264 public void set_constraints(org.omg.mof.Model.Constraint[] new_value) throws org.omg.mof.Reflective.MofError { 265 _constraintss.removeAllElements(); 266 for(int i= 0; i< new_value.length ; i++) _constraintss.addElement(new_value[i]); 267 } 268 public void add_constraints (org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.MofError{ 269 _constraintss.addElement(new_element); 270 } 271 public void modify_constraints (org.omg.mof.Model.Constraint old_element,org.omg.mof.Model.Constraint new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 272 if( _constraintss.contains(old_element)) { 273 int i =_constraintss.indexOf(old_element); 274 _constraintss.setElementAt(new_element, i); 275 } 276 else throw new org.omg.mof.Reflective.NotFound(); 277 } 278 public void remove_constraints (org.omg.mof.Model.Constraint old_element ) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 279 if(_constraintss.contains(old_element)) _constraintss.removeElement(old_element); 280 else throw new org.omg.mof.Reflective.NotFound() ; 281 } 282 283 private java.util.Vector _elementss = new java.util.Vector (); 285 public org.omg.mof.Model.ModelElement[] elements() throws org.omg.mof.Reflective.MofError { 286 org.omg.mof.Model.ModelElement[] temp1 = new org.omg.mof.Model.ModelElement[_elementss.size()]; 287 for(int i=0; i< _elementss.size(); i++) temp1[i] = (org.omg.mof.Model.ModelElement)_elementss.elementAt(i); 288 return temp1; 289 } 290 public void set_elements(org.omg.mof.Model.ModelElement[] new_value) throws org.omg.mof.Reflective.MofError { 291 _elementss.removeAllElements(); 292 for(int i= 0; i< new_value.length ; i++) _elementss.addElement(new_value[i]); 293 } 294 public void add_elements (org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.MofError{ 295 _elementss.addElement(new_element); 296 } 297 public void modify_elements (org.omg.mof.Model.ModelElement old_element,org.omg.mof.Model.ModelElement new_element) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError{ 298 if( _elementss.contains(old_element)) { 299 int i =_elementss.indexOf(old_element); 300 _elementss.setElementAt(new_element, i); 301 } 302 else throw new org.omg.mof.Reflective.NotFound(); 303 } 304 public void remove_elements (org.omg.mof.Model.ModelElement old_element ) throws org.omg.mof.Reflective.NotFound, org.omg.mof.Reflective.MofError { 305 if(_elementss.contains(old_element)) _elementss.removeElement(old_element); 306 else throw new org.omg.mof.Reflective.NotFound() ; 307 } 308 309 public TagImpl(String name, String annotation, String tag_id, org.omg.CORBA.Any [] valuess, org.omg.mof.Model.TagClass _proxy){ 310 _name = name ; 311 _annotation = annotation ; 312 _tag_id = tag_id ; 313 for(int i=0;i<valuess.length; i++) _valuess.addElement(valuess[i]); _class_proxy = _proxy ; 314 } 315 } 316 | Popular Tags |