Examples of DateFieldType


Examples of com.bluetangstudio.searchcloud.client.model.schema.DateFieldType

        String modelId = "test_SetSchema";

        DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
        DocumentSchema schema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField("date",
                new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
                new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();
       
        client.setSchema(new SetSchemaRequest(modelId, schema));

    }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.model.schema.DateFieldType

        Assert.assertNotNull(schema);

        DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
        DocumentSchema expectedSchema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField(
                "date", new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
                new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();

        Assert.assertEquals(schema, expectedSchema);
    }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.model.schema.DateFieldType

    public DocumentSchema get(@PathParam("modelId") String modelId) {
        Assert.assertNotNull(modelId);

        DocumentSchemaBuilder builder = new DocumentSchemaBuilder();
        DocumentSchema schema = builder.withField("string", new StringFieldType(Language.ZH_TW)).withField("date",
                new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
                new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();

        return schema;
    }
View Full Code Here

Examples of com.bluetangstudio.searchcloud.client.model.schema.DateFieldType

    @Test
    public void buildHttpUriRequest() {

        DocumentSchemaBuilder documentSchemaBuilder = new DocumentSchemaBuilder();
        DocumentSchema schema = documentSchemaBuilder.withField("string", new StringFieldType(Language.ZH_TW))
                .withField("date", new DateFieldType()).withField("location", new LocationFieldType()).withField("int",
                        new IntegerFieldType(true)).withField("double", new DoubleFieldType(true)).build();

        SetSchemaRequest buildSchemaRequest = new SetSchemaRequest("BuildSchemaRequestBuilderTest", schema);
        setTrackingVariables(buildSchemaRequest);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.types.DateFieldType

public class DateFieldReportElementReadHandler extends AbstractTextElementReadHandler
{
  public DateFieldReportElementReadHandler()
  {
    final Element element = new Element();
    element.setElementType(new DateFieldType());
    setElement(element);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.types.DateFieldType

    {
      return new NumberFieldType();
    }
    if (Date.class.isAssignableFrom(fieldType))
    {
      return new DateFieldType();
    }
    if (byte[].class.isAssignableFrom(fieldType) ||
        Blob.class.isAssignableFrom(fieldType) ||
        Image.class.isAssignableFrom(fieldType))
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.types.DateFieldType

    {
      elementType = new NumberFieldType();
    }
    else if (Date.class.isAssignableFrom(type))
    {
      elementType = new DateFieldType();
    }
    else if (byte[].class.isAssignableFrom(type) ||
        Blob.class.isAssignableFrom(type) ||
        File.class.isAssignableFrom(type) ||
        URL.class.isAssignableFrom(type) ||
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.types.DateFieldType

  {
    final Element element = new Element();
    if (format instanceof SimpleDateFormat ||
        format == null)
    {
      element.setElementType(new DateFieldType());
      if (getFieldname() != null)
      {
        element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, getFieldname());
      }
      if (getFormula() != null)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.types.DateFieldType

  {
    Element element = new Element();
    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, "date");
    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FORMAT_STRING, "yyyy-MM-dd'T'HH:mm:ss,SSSZZZ");

    DateFieldType t = new DateFieldType();
    Assert.assertEquals("2009-02-13T15:31:30,123-0800", t.getValue(runtime, element));
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.filter.types.DateFieldType

  {
    final Element element = new Element();
    if (format instanceof SimpleDateFormat ||
        format == null)
    {
      element.setElementType(new DateFieldType());
      if (getFieldname() != null)
      {
        element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FIELD, getFieldname());
      }
      if (getFormula() != null)
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.