예제 #1
0
 @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;
 }
예제 #2
0
 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;
 }
예제 #4
0
 public boolean isBoolean() {
   return datatype.equals(getOWLDataFactory().getBooleanOWLDatatype());
 }
예제 #5
0
 public boolean isInteger() {
   return datatype.equals(getOWLDataFactory().getIntegerOWLDatatype());
 }
예제 #6
0
 public boolean isRDFPlainLiteral() {
   return datatype.equals(getOWLDataFactory().getRDFPlainLiteral());
 }
예제 #7
0
 public boolean isFloat() {
   return datatype.equals(getOWLDataFactory().getFloatOWLDatatype());
 }
예제 #8
0
 public boolean isDouble() {
   return datatype.equals(getOWLDataFactory().getDoubleOWLDatatype());
 }