ZDataProperty implements Serializable { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; ZDataProperty other = (ZDataProperty) obj; if (dataProperty == null) { if (other.dataProperty != null) return false; } else if (!dataProperty.equals(other.dataProperty)) return false; if (restrictionType == null) { if (other.restrictionType != null) return false; } else if (!restrictionType.equals(other.restrictionType)) return false; if (rangeXSDType == null) { if (other.rangeXSDType != null) return false; } else if (!rangeXSDType.equals(other.rangeXSDType)) return false; return true; } ZDataProperty(IRI dataProperty); @Override int hashCode(); @Override boolean equals(Object obj); String getValue(); void setValue(String value); String getTemplateForm(); String getLabel(); void setLabel(String label); String getComments(); void setComments(String comments); IRI getDataProperty(); String getDataPropertyShortFormCS(); String getDataPropertyShortForm(); String getDataPropertyNamespace(); void setDataProperty(IRI dataProperty); String getRestrictionType(); void setRestrictionType(String restrictionType); String getRangeXSDType(); void setRangeXSDType(String rangeXSDType); void print(); void setOverridable(); boolean isOverridable(); String getPackageName(); void setPackageName(String packageName); boolean isHidingParentProperty(); void setHidingParentProperty(); boolean isGeneratable(); void setGenerate(boolean generate);  }
@Test public void testEquals() throws NoSuchFieldException, IllegalAccessException { String iriStr = "http: IRI iri = IRI.create(iriStr); ZDataProperty zdataproperty = new ZDataProperty(iri); String iriStr2 = "http: IRI iri2 = IRI.create(iriStr2); ZDataProperty zdataproperty2 = new ZDataProperty(iri2); assertTrue(zdataproperty.equals(zdataproperty2)); }
@Test public void testThisEquals() throws NoSuchFieldException, IllegalAccessException { String iriStr = "http: IRI iri = IRI.create(iriStr); ZDataProperty zdataproperty = new ZDataProperty(iri); assertFalse(zdataproperty.equals(null)); }