Examples of parseValue()


Examples of org.apache.xmlgraphics.ps.dsc.events.UnparsedDSCComment.parseValue()

        if (parsed != null) {
            parsed.parseValue(value);
            return parsed;
        } else {
            UnparsedDSCComment unparsed = new UnparsedDSCComment(name);
            unparsed.parseValue(value);
            return unparsed;
        }
    }

    /**
 
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.IValueParser.parseValue()

        if (writeMethodName != null && setMethodName.equals(writeMethodName)) {
          List args = mi.arguments();
          IValueParser vp = property.getValueParser();
          if (vp != null) {
            Object oldValue = property.getFieldValue(bean);
            Object newValue = vp.parseValue(oldValue, args);
            property.setFieldValue(bean, newValue);
          }
        }
      }
    }
View Full Code Here

Examples of org.identityconnectors.framework.common.objects.Attribute.parseValue()

                    USchema schema = schemaDAO.find(accountIdMap.getIntAttrName(), USchema.class);
                    if (schema == null) {
                        value.setStringValue(uid);
                    } else {
                        try {
                            value.parseValue(schema, uid);
                        } catch (ParsingValidationException e) {
                            LOG.error("While parsing provided __UID__ {}", uid, e);
                            value.setStringValue(uid);
                        }
                    }
View Full Code Here

Examples of org.identityconnectors.framework.common.objects.Attribute.parseValue()

                    USchema schema = schemaDAO.find(accountIdMap.getIntAttrName(), USchema.class);
                    if (schema == null) {
                        value.setStringValue(uid);
                    } else {
                        try {
                            value.parseValue(schema, uid);
                        } catch (ParsingValidationException e) {
                            LOG.error("While parsing provided __UID__ {}", uid, e);
                            value.setStringValue(uid);
                        }
                    }
View Full Code Here

Examples of org.moxie.maxml.MaxmlParser.parseValue()

  @SuppressWarnings("rawtypes")
  @Test
  public void testValueParsing() throws Exception {
    MaxmlParser parser = new MaxmlParser();
    // strings
    assertEquals("string", parser.parseValue("string"));
    assertEquals("string", parser.parseValue("'string'"));
    assertEquals("string", parser.parseValue("\"string\""));
    assertEquals("Moxie\nis a\nJava Project Build Toolkit\n", Maxml.parse(blockTest).get("description"));
    assertEquals("Moxie\n is a\n  Java Project Build Toolkit", Maxml.parse(blockTest2).get("description"));
    assertEquals("Moxie\n is a\n  Java Project Build Toolkit\n", Maxml.parse(blockTest3).get("description"));
View Full Code Here

Examples of org.mozilla.javascript.json.JsonParser.parseValue()

        }
        Scriptable scope = funObj.getParentScope();
        JsonParser parser = new JsonParser(cx, scope);
        Object parsed;
        try {
            parsed = parser.parseValue(json);
        } catch (ParseException e) {
            throw ScriptRuntime.constructError("Error", e.getMessage());
        }
        Object result;
        if (parsed instanceof NativeObject) {
View Full Code Here

Examples of org.mozilla.javascript.json.JsonParser.parseValue()

    }

    private Scriptable parseJsonResource(Resource resource) throws IOException {
        JsonParser parser = new JsonParser(Context.getCurrentContext(), globalScope);
        try {
            Object result = parser.parseValue(resource.getContent());
            if (!(result instanceof Scriptable)) {
                throw new RuntimeException(
                        "Expected Object from package.json, got " + result);
            }
            return (Scriptable) result;
View Full Code Here

Examples of org.talend.esb.sam.server.persistence.criterias.DateCriteria.parseValue()

public class DateCriteriaTest extends TestCase {

  public void testCriteria() throws Exception {
    DateCriteria criteria = new DateCriteria("timestamp_before", "TIMESTAMP");
    Criteria value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP < :timestamp_before", value.getFilterClause().toString());

    criteria = new DateCriteria("timestamp_after", "TIMESTAMP");
    value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP > :timestamp_after", value.getFilterClause().toString());
View Full Code Here

Examples of org.talend.esb.sam.server.persistence.criterias.DateCriteria.parseValue()

    DateCriteria criteria = new DateCriteria("timestamp_before", "TIMESTAMP");
    Criteria value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP < :timestamp_before", value.getFilterClause().toString());

    criteria = new DateCriteria("timestamp_after", "TIMESTAMP");
    value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP > :timestamp_after", value.getFilterClause().toString());

    criteria = new DateCriteria("timestamp", "TIMESTAMP");
    value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP = :timestamp", value.getFilterClause().toString());
View Full Code Here

Examples of org.talend.esb.sam.server.persistence.criterias.DateCriteria.parseValue()

    criteria = new DateCriteria("timestamp_after", "TIMESTAMP");
    value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP > :timestamp_after", value.getFilterClause().toString());

    criteria = new DateCriteria("timestamp", "TIMESTAMP");
    value = criteria.parseValue("1307570400000")[0];
    assertEquals("TIMESTAMP = :timestamp", value.getFilterClause().toString());
  }
 
  public void testOnDayCriteria() throws Exception {
    DateCriteria criteria = new DateCriteria("timestamp_on", "TIMESTAMP");
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.