1 21 22 package org.omg.mof.Model; 24 public class ModelElementClassImpl extends org.omg.mof.Model.ModelElementClassPOA { 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 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 public org.omg.mof.Model.ModelElement[] all_of_type_model_element() { 128 java.util.Vector all_type_vector = new java.util.Vector (); 129 org.omg.mof.Model.Tag[] _tag =_model_package.tag_ref().all_of_class_tag(); 130 for(int i=0; i<_tag.length ; i++) all_type_vector.addElement(_tag[i]); 131 org.omg.mof.Model.Class[] _class =_model_package.class_ref().all_of_class_class(); 132 for(int i=0; i<_class.length ; i++) all_type_vector.addElement(_class[i]); 133 org.omg.mof.Model.Association[] _association =_model_package.association_ref().all_of_class_association(); 134 for(int i=0; i<_association.length ; i++) all_type_vector.addElement(_association[i]); 135 org.omg.mof.Model.Import[] _import =_model_package.import_ref().all_of_class_import(); 136 for(int i=0; i<_import.length ; i++) all_type_vector.addElement(_import[i]); 137 org.omg.mof.Model.TypeAlias[] _type_alias =_model_package.type_alias_ref().all_of_class_type_alias(); 138 for(int i=0; i<_type_alias.length ; i++) all_type_vector.addElement(_type_alias[i]); 139 org.omg.mof.Model.Constant[] _constant =_model_package.constant_ref().all_of_class_constant(); 140 for(int i=0; i<_constant.length ; i++) all_type_vector.addElement(_constant[i]); 141 org.omg.mof.Model.Package[] _package =_model_package.package_ref().all_of_class_package(); 142 for(int i=0; i<_package.length ; i++) all_type_vector.addElement(_package[i]); 143 org.omg.mof.Model.DataType[] _data_type =_model_package.data_type_ref().all_of_class_data_type(); 144 for(int i=0; i<_data_type.length ; i++) all_type_vector.addElement(_data_type[i]); 145 org.omg.mof.Model.Constraint[] _constraint =_model_package.constraint_ref().all_of_class_constraint(); 146 for(int i=0; i<_constraint.length ; i++) all_type_vector.addElement(_constraint[i]); 147 org.omg.mof.Model.Parameter[] _parameter =_model_package.parameter_ref().all_of_class_parameter(); 148 for(int i=0; i<_parameter.length ; i++) all_type_vector.addElement(_parameter[i]); 149 org.omg.mof.Model.AssociationEnd[] _association_end =_model_package.association_end_ref().all_of_class_association_end(); 150 for(int i=0; i<_association_end.length ; i++) all_type_vector.addElement(_association_end[i]); 151 org.omg.mof.Model.MofException[] _mof_exception =_model_package.mof_exception_ref().all_of_class_mof_exception(); 152 for(int i=0; i<_mof_exception.length ; i++) all_type_vector.addElement(_mof_exception[i]); 153 org.omg.mof.Model.MofAttribute[] _mof_attribute =_model_package.mof_attribute_ref().all_of_class_mof_attribute(); 154 for(int i=0; i<_mof_attribute.length ; i++) all_type_vector.addElement(_mof_attribute[i]); 155 org.omg.mof.Model.Reference[] _reference =_model_package.reference_ref().all_of_class_reference(); 156 for(int i=0; i<_reference.length ; i++) all_type_vector.addElement(_reference[i]); 157 org.omg.mof.Model.Operation[] _operation =_model_package.operation_ref().all_of_class_operation(); 158 for(int i=0; i<_operation.length ; i++) all_type_vector.addElement(_operation[i]); 159 org.omg.mof.Model.ModelElement[] all_type = new org.omg.mof.Model.ModelElement[all_type_vector.size()]; 160 for (int i=0; i< all_type_vector.size(); i++) all_type[i]= (org.omg.mof.Model.ModelElement)all_type_vector.elementAt(i); 161 return all_type; 162 } 163 public ModelElementClassImpl(org.omg.mof.Model._ModelPackage _model_package) { 164 this._model_package = _model_package ; 165 } 166 } 167 | Popular Tags |