Examples of DomainType


Examples of com.impossibl.postgres.types.DomainType

    }

    @Override
    public void encode(Type type, ByteBuf buffer, Object value, Context context) throws IOException {

      DomainType domainType = (DomainType) type;
      Type baseType = domainType.getBase();

      baseType.getBinaryCodec().encoder.encode(baseType, buffer, value, context);
    }
View Full Code Here

Examples of com.impossibl.postgres.types.DomainType

    }

    @Override
    public int length(Type type, Object val, Context context) throws IOException {

      DomainType domainType = (DomainType) type;
      Type baseType = domainType.getBase();

      return baseType.getBinaryCodec().encoder.length(baseType, val, context);
    }
View Full Code Here

Examples of com.impossibl.postgres.types.DomainType

    }

    @Override
    public void encode(Type type, StringBuilder buffer, Object value, Context context) throws IOException {

      DomainType domainType = (DomainType) type;
      Type baseType = domainType.getBase();

      baseType.getTextCodec().encoder.encode(baseType, buffer, value, context);
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.DomainType

                "}";
        mRegistry.register("MyDType",
                new DispelObject(
                        "MyDType",
                        DispelObjectType.DOMAIN_TYPE,
                        new DomainType(new SimpleDType())));
        mRegistry.register("MySType",
                new DispelObject(
                        "MySType",
                        DispelObjectType.STRUCTURAL_TYPE,
                        new StructuralType(new PrimitiveSType("Integer"))));
View Full Code Here

Examples of eu.admire.dispel.parser.types.DomainType

                "with f(g(h(x))), " +
                "@description=\"This is X!\";");
        TestCase.assertNull(mGraphBuilder.getError());
        Type type = builder.getDispelExecutionState().getUsedProcessingElements().getType("X");
        TestCase.assertTrue(type instanceof DomainType);
        DomainType dtype = (DomainType)type;
        TestCase.assertEquals("This is X!", dtype.getAnnotation("description"));
        Object assertion = dtype.getAnnotation(AnnotationKeys.ASSERTION_EXPRESSIONS);
        TestCase.assertTrue(assertion instanceof List<?>);
        List<?> expressions = (List<?>)assertion;
        TestCase.assertEquals(1, expressions.size());
    }
View Full Code Here

Examples of eu.admire.dispel.parser.types.DomainType

        return mName;
    }
   
    public DomainType getType()
    {
        DomainType domainType = new DomainType(mDomainType);
        List<Object> expressions = new ArrayList<Object>();
        domainType.addAnnotation(
                AnnotationKeys.ASSERTION_EXPRESSIONS, expressions);
        for (WithAssertionStrategy assertion : mAssertions)
        {
            if (assertion.getAnnotationKey() != null)
            {
                domainType.addAnnotation(
                        assertion.getAnnotationKey(),
                        assertion.getAnnotationValue());
            }
            if (assertion.getExpressionAssertion() != null)
            {
View Full Code Here

Examples of eu.admire.dispel.parser.types.DomainType

        SimpleDType dtype = new SimpleDType();
        dtype.setRepresents(represents);
        DispelObject dtypeObj = new DispelObject(
                dispelName,
                DispelObjectType.DOMAIN_TYPE,
                new DomainType(dtype));
        mRegistry.register(dispelName, dtypeObj);
    }
View Full Code Here

Examples of net.opengis.ows10.DomainType

    private void addParameter(Node node, Ows10Factory ows10Factory, OperationType operationType,
            String parameterName) {
        Node paramParentNode = node.getChild(parameterName);
        List<String> paramValues = childNames(paramParentNode);

        DomainType domain = ows10Factory.createDomainType();
        domain.setName(parameterName);

        for (String paramValue : paramValues) {
            domain.getValue().add(paramValue);
        }
        operationType.getParameter().add(domain);
    }
View Full Code Here

Examples of net.opengis.ows10.DomainType

        assertEquals("GetRecords", gr.getName());
        DCPType dcp = (DCPType) gr.getDCP().get(0);
        RequestMethodType rm = (RequestMethodType) dcp.getHTTP().getPost().get(0);
        assertEquals("http://tc22-test:9090/soapService/services/CSWDiscovery", rm.getHref());
        assertEquals(6, gr.getParameter().size());
        DomainType param = (DomainType) gr.getParameter().get(0);
        assertEquals("TypeName", param.getName());
        assertEquals("gmd:MD_Metadata", param.getValue().get(0));
        assertEquals("csw:Record", param.getValue().get(1));
        assertEquals(2, gr.getConstraint().size());
        DomainType ct = (DomainType) gr.getConstraint().get(0);
        assertEquals("SupportedISOQueryables", ct.getName());
        assertEquals(25, ct.getValue().size());
        assertEquals("RevisionDate", ct.getValue().get(0));
        assertEquals("OperatesOnWithOpName", ct.getValue().get(24));
       
        /** This fails, caps are not getting parsed **/
        FilterCapabilities filterCapabilities = caps.getFilterCapabilities();
        assertNotNull(filterCapabilities);
        SpatialCapabilities spatial = filterCapabilities.getSpatialCapabilities();
View Full Code Here

Examples of net.opengis.ows10.DomainType

  public CapabilitiesType decorate(CapabilitiesType caps, CatalogStore store) {
    // amend GetRecords
    OperationsMetadataType operations = caps.getOperationsMetadata();
    OperationType gro = getOperation("GetRecords", operations);

    DomainType outputFormats = getParameter("outputFormat", gro);
    outputFormats.getValue().add("text/xml");

    return caps;
  }
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.