Package sherpa.protocol

Examples of sherpa.protocol.TypedLiteral


    } else if (value instanceof PlainLiteral) {
      PlainLiteral pl = (PlainLiteral)value;
      String lang = pl.language != null ? pl.language.toString() : null;
      return new PlainLiteralImpl(pl.lexical.toString(), lang);
    } else if (value instanceof TypedLiteral) {
      TypedLiteral tl = (TypedLiteral)value;
      return new TypedLiteralImpl(tl.lexical.toString(), URI.create(tl.datatype.toString()));
    } else if (value instanceof BNode) {
      return new BlankNodeImpl(((BNode)value).label.toString());
    } else {
      // Sherpa passes strings as something other than java.lang.String, so convert.
View Full Code Here


    lit.language = l.getLanguage();
    return lit;
  }
 
  public static TypedLiteral typedLit(TypedLiteralImpl l) {
    TypedLiteral lit = new TypedLiteral();
    lit.lexical = l.getLexical();
    lit.datatype = l.getDataType().toString();
    return lit;
  }
View Full Code Here

TOP

Related Classes of sherpa.protocol.TypedLiteral

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.