Package com.clarkparsia.pellet.datatypes.exceptions

Examples of com.clarkparsia.pellet.datatypes.exceptions.UnrecognizedDatatypeException


        case INFINITE_STRING:
          return literal;
        case EMPTY:
          throw new InvalidLiteralException(dtName, ATermUtils.getLiteralValue(literal));
        case EXCEPTION:
          throw new UnrecognizedDatatypeException(dtName);
        default:
          throw new IllegalStateException();
      }
    }
        else {
View Full Code Here


            dt = InfiniteNamedDatatype.get(a);
            break;
          case EMPTY:
            return EMPTY_RANGE;
          case EXCEPTION:
            throw new UnrecognizedDatatypeException(a);
          default:
            throw new IllegalStateException();
        }
      }
      return dt.asDataRange();
View Full Code Here

        case INFINITE_STRING:
          return literal;
        case EMPTY:
          throw new InvalidLiteralException(dtName, ATermUtils.getLiteralValue(literal));
        case EXCEPTION:
          throw new UnrecognizedDatatypeException(dtName);
        default:
          throw new IllegalStateException();
      }
    }
        else {
View Full Code Here

    if (dtTerm == null) {
          throw new IllegalArgumentException();
        }
    final Datatype<?> dt = getDatatype(dtTerm);
    if (dt == null) {
          throw new UnrecognizedDatatypeException(dtTerm);
        }
    try {
      dt.getValue(typedLiteral);
    }
    catch (InvalidLiteralException e) {
View Full Code Here

TOP

Related Classes of com.clarkparsia.pellet.datatypes.exceptions.UnrecognizedDatatypeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.