Examples of Literal


Examples of org.apache.marmotta.client.model.rdf.Literal

     * @return
     */
    public static Metadata fromPropertiesMap(String resource, Map<String,String> map) {
        Metadata m = new Metadata(resource);
        for(Map.Entry<String,String> entry : map.entrySet()) {
            m.put(entry.getKey(), ImmutableSet.<RDFNode>of(new Literal(entry.getValue())));
        }
        return m;
    }
View Full Code Here

Examples of org.apache.openjpa.kernel.exps.Literal

                literalType = Literal.TYPE_STRING;
            } else if (Enum.class.isAssignableFrom(literalClass)) {
                literalType = Literal.TYPE_ENUM;
            } else if (Class.class.isAssignableFrom(literalClass)) {
                literalType = Literal.TYPE_CLASS;
                Literal lit = factory.newTypeLiteral(value, Literal.TYPE_CLASS);
                ClassMetaData can = ((Types.Entity<X>)q.getRoot().getModel()).meta;
                Class<?> candidate = can.getDescribedType();
                if (candidate.isAssignableFrom((Class)value)) {
                   lit.setMetaData(q.getMetamodel().getRepository().getMetaData((Class<?>)value, null, true));
                } else {
                    lit.setMetaData(can);
                }
                return lit;
            } else if (Collection.class.isAssignableFrom(literalClass)) {
                literalType = Literal.TYPE_COLLECTION;
            }
View Full Code Here

Examples of org.apache.taglibs.standard.lang.jstl.Literal

     {if (true) return new ArraySuffix (index);}
    throw new Error("Missing return statement in function");
  }

  final public Literal Literal() throws ParseException {
  Literal ret;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case TRUE:
    case FALSE:
      ret = BooleanLiteral();
      break;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.Literal

          break;
        case ASTNode.BOOLEAN_LITERAL :
        case ASTNode.NULL_LITERAL :
        case ASTNode.CHARACTER_LITERAL :
        case ASTNode.NUMBER_LITERAL :
          Literal literal = (Literal) this.newAstToOldAst.get(expression);
          return this.getTypeBinding(literal.literalType(null));
        case ASTNode.THIS_EXPRESSION :
          ThisReference thisReference = (ThisReference) this.newAstToOldAst.get(expression);
          BlockScope blockScope = (BlockScope) this.astNodesToBlockScope.get(expression);
          if (blockScope != null) {
            return this.getTypeBinding(thisReference.resolveType(blockScope));
View Full Code Here

Examples of org.auraframework.util.javascript.Literal

                auraInit.put("deftype", def.getDescriptor().getDefType());
                auraInit.put("host", contextPath);

                StringBuilder contextWriter = new StringBuilder();
                Aura.getSerializationService().write(context, null, AuraContext.class, contextWriter, "HTML");
                auraInit.put("context", new Literal(contextWriter.toString()));

                attributes.put("auraInit", Json.serialize(auraInit));
            }
            Component template = instanceService.getInstance(templateDef.getDescriptor(), attributes);
            renderingService.render(template, out);
View Full Code Here

Examples of org.corrib.s3b.mbb.beans.rdf.Literal

      org.openrdf.model.Resource resource = (org.openrdf.model.Resource)value;
      return getResource(resource);
    } else if (value instanceof org.openrdf.model.Literal) {
      org.openrdf.model.Literal literal = (org.openrdf.model.Literal)value;
      if (literal.getLanguage() != null) {
        return new Literal(literal.getLabel(), literal.getLanguage());
      } else if (literal.getDatatype() != null) {
        return new Literal(literal.getLabel(), new URI(literal.getDatatype().getURI()));
      } else {
        return new Literal(literal.getLabel());
      }
    } else {
      return null;
    }
  }
View Full Code Here

Examples of org.datanucleus.query.expression.Literal

                // Evaluate the cast
                expr.getLeft().evaluate(this);
                sqlExpr = stack.pop();

                // Add the cast expression to the table mapping
                Literal castLitExpr = (Literal)expr.getLeft().getRight();
                AbstractClassMetaData castCmd =
                    ec.getMetaDataManager().getMetaDataForClass(resolveClass((String)castLitExpr.getLiteral()), clr);
                String exprCastName = null;
                if (expr.getLeft().getLeft() instanceof PrimaryExpression)
                {
                    exprCastName = "CAST_" + ((PrimaryExpression)expr.getLeft().getLeft()).getId();
                }
View Full Code Here

Examples of org.eclipse.dltk.ast.expressions.Literal

    for (int a = 0; a < args.size(); a++) {
      Argument arg = (Argument) args.get(a);
      parameter[a] = arg.getName();
      if (arg.getInitialization() != null) {
        if (arg.getInitialization() instanceof Literal) {
          Literal scalar = (Literal) arg.getInitialization();
          initializers[a] = scalar.getValue();
        } else {
          initializers[a] = DEFAULT_VALUE;
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.Literal

          break;
        case ASTNode.BOOLEAN_LITERAL :
        case ASTNode.NULL_LITERAL :
        case ASTNode.CHARACTER_LITERAL :
        case ASTNode.NUMBER_LITERAL :
          Literal literal = (Literal) this.newAstToOldAst.get(expression);
          if (literal != null) {
            return this.getTypeBinding(literal.literalType(null));
          }
          break;
        case ASTNode.THIS_EXPRESSION :
          ThisReference thisReference = (ThisReference) this.newAstToOldAst.get(expression);
          BlockScope blockScope = (BlockScope) this.astNodesToBlockScope.get(expression);
View Full Code Here

Examples of org.eclipse.sapphire.modeling.el.Literal

            }
        );
       
        // Image
       
        final Literal defaultImageLiteral = Literal.create( ( this.definition.getChildNodes().isEmpty() ? IMG_LEAF_NODE : IMG_CONTAINER_NODE ) );
        final Function imageFunction = this.definition.getImage().content();
       
        this.imageManager = new ImageManager( imageFunction, defaultImageLiteral );
       
        // Decorations
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.