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