View Javadoc
1 package com.bonevich.erj.mof.impl.model; 2 public final class ErjDefaultValueImpl extends ru.novosoft.mdf.impl.MDFStructImpl implements com.bonevich.erj.mof.interfaces.model.DefaultValue 3 { 4 private String value; 5 public ErjDefaultValueImpl(String value) 6 { 7 this.value = value; 8 } 9 public final String getValue() 10 { 11 return value; 12 } 13 public final Object refGetValue(String feature) 14 { 15 if ("value".equals( feature )) 16 { 17 return value; 18 } 19 throw new javax.jmi.reflect.InvalidCallException( null ); 20 } 21 public Object refGetValue(javax.jmi.reflect.RefObject feature) 22 { 23 if (ru.novosoft.mdf.impl.MDFBaseObjectImpl.checkQualifiedName( feature, "ErjInfoModel","DefaultValue","value")) 24 { 25 return getValue(); 26 } 27 return super.refGetValue(feature); 28 } 29 private java.util.List ref_type_name = null; 30 public final java.util.List refTypeName() 31 { 32 if (ref_type_name == null) 33 { 34 ref_type_name = new java.util.ArrayList(2); 35 ref_type_name.add("ErjInfoModel"); 36 ref_type_name.add("DefaultValue"); 37 } 38 return ref_type_name; 39 } 40 public boolean equals(Object other) 41 { 42 if (other == null) 43 { 44 throw new NullPointerException(); 45 } 46 if (other instanceof ru.novosoft.mdf.ext.MDFStruct) 47 { 48 ru.novosoft.mdf.ext.MDFStruct mdf_struct = (ru.novosoft.mdf.ext.MDFStruct) other; 49 java.util.List type1 = mdf_struct.refTypeName(); 50 java.util.List type2 = refTypeName(); 51 if (type1.size() != type2.size()) 52 { 53 return false; 54 } 55 for (int i = 0; i < type1.size(); i++) 56 { 57 if (!((String)type1.get(i)).equals((String)type2.get(i))) 58 { 59 return false; 60 } 61 } 62 } 63 com.bonevich.erj.mof.interfaces.model.DefaultValue m = (com.bonevich.erj.mof.interfaces.model.DefaultValue) other; 64 if (value == m.getValue()) 65 { 66 return true; 67 } 68 return false; 69 } 70 }

This page was automatically generated by Maven