Examples of Thing


Examples of org.mvel2.tests.core.res.Thing

    ParserContext pCtx = new ParserContext(pconf);
    pCtx.setStrongTyping(true);

    pCtx.addInput("thing", Thing.class);

    Thing thing = new Thing("xxx");
    Map<String, Object> vars = new HashMap<String, Object>();
    vars.put("thing", thing);

    ExecutableStatement stmt = (ExecutableStatement) MVEL.compileExpression("with( thing ) { myEnum = MyEnum.FULL_DOCUMENTATION }", pCtx);
    MVEL.executeExpression(stmt, null, vars);
    assertEquals(MyEnum.FULL_DOCUMENTATION, thing.getMyEnum());
  }
View Full Code Here

Examples of org.openrdf.concepts.owl.Thing

        if (null != place.getFullName()) {
            f.setTitle(place.getFullName());
        }

        if (null != place.getUrl()) {
            Thing t = designate(place.getUrl(), Thing.class);
            // FIXME: I'm not sure how this Object Set is handled
            Set<Object> s = f.getRdfsSeeAlso();
            s.add(t);
            f.setRdfsSeeAlso(s);
        }
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.