@Override public boolean equals(Object obj) { if (super.equals(obj)) { if (obj instanceof OWLLiteralImplBoolean) { OWLLiteralImplBoolean other = (OWLLiteralImplBoolean) obj; return literal == other.literal && datatype.equals(other.getDatatype()); } if (obj instanceof OWLLiteral) { return datatype.equals(((OWLLiteral) obj).getDatatype()) && getLiteral().equals(((OWLLiteral) obj).getLiteral()); } } return false; }
public boolean equals(Object obj) { if (super.equals(obj)) { if (!(obj instanceof OWLLiteral)) { return false; } OWLLiteral other = (OWLLiteral) obj; return literal.equals(other.getLiteral()) && datatype.equals(other.getDatatype()) && lang.equals(other.getLang()); } return false; }
@Override public boolean equals(Object obj) { if (super.equals(obj)) { // superclass is responsible for null, identity, owlaxiom type and annotations if (!(obj instanceof OWLDatatypeDefinitionAxiom)) { return false; } OWLDatatypeDefinitionAxiom other = (OWLDatatypeDefinitionAxiom) obj; return datatype.equals(other.getDatatype()) && dataRange.equals(other.getDataRange()); } return false; }
public boolean isBoolean() { return datatype.equals(getOWLDataFactory().getBooleanOWLDatatype()); }
public boolean isInteger() { return datatype.equals(getOWLDataFactory().getIntegerOWLDatatype()); }
public boolean isRDFPlainLiteral() { return datatype.equals(getOWLDataFactory().getRDFPlainLiteral()); }
public boolean isFloat() { return datatype.equals(getOWLDataFactory().getFloatOWLDatatype()); }
public boolean isDouble() { return datatype.equals(getOWLDataFactory().getDoubleOWLDatatype()); }