Examples of StructureImpl


Examples of org.apache.cxf.jaxrs.resources.sdo.impl.StructureImpl

    public void testSDOWrite() throws Exception {
        Service s = new JAXRSServiceImpl(Collections.singletonList(c2), true);
        DataBinding binding = new SDODataBinding();
        binding.initialize(s);
        DataBindingProvider p = new DataBindingProvider(binding);
        Structure struct = new StructureImpl();
        struct.getTexts().add("text1");
        struct.setText("sdo");
        struct.setInt(3);
        struct.setDbl(123.5);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        p.writeTo(struct, Structure.class, Structure.class,
            new Annotation[0], MediaType.TEXT_XML_TYPE, new MetadataMap<String, Object>(), bos);
        String data = "<p0:Structure xmlns:p0=\"http://apache.org/structure/types\" "
            + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.sdo.impl.StructureImpl

    public void testSDOWrite() throws Exception {
        Service s = new JAXRSServiceImpl(Collections.singletonList(c2), true);
        DataBinding binding = new SDODataBinding();
        binding.initialize(s);
        DataBindingProvider p = new DataBindingProvider(binding);
        Structure struct = new StructureImpl();
        struct.getTexts().add("text1");
        struct.setText("sdo");
        struct.setInt(3);
        struct.setDbl(123.5);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        p.writeTo(struct, Structure.class, Structure.class,
            new Annotation[0], MediaType.TEXT_XML_TYPE, new MetadataMap<String, Object>(), bos);
        String data = "<p0:Structure xmlns:p0=\"http://apache.org/structure/types\" "
            + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.sdo.impl.StructureImpl

        DataBinding binding = new SDODataBinding();
        binding.initialize(s);
        DataBindingJSONProvider p = new DataBindingJSONProvider();
        p.setDataBinding(binding);
        p.setNamespaceMap(Collections.singletonMap("http://apache.org/structure/types", "p0"));
        Structure struct = new StructureImpl();
        struct.getTexts().add("text1");
        struct.setText("sdo");
        struct.setInt(3);
        struct.setDbl(123.5);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        p.writeTo(struct, Structure.class, Structure.class,
            new Annotation[0], MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), bos);
        String data = "{\"p0.Structure\":{\"@xsi.type\":\"p0:Structure\",\"p0.text\":\"sdo\",\"p0.int\":3"
            + ",\"p0.dbl\":123.5,\"p0.texts\":\"text1\"}}";
View Full Code Here

Examples of org.apache.cxf.jaxrs.resources.sdo.impl.StructureImpl

        DataBinding binding = new SDODataBinding();
        binding.initialize(s);
        DataBindingJSONProvider<Structure> p = new DataBindingJSONProvider<Structure>();
        p.setDataBinding(binding);
        p.setNamespaceMap(Collections.singletonMap("http://apache.org/structure/types", "p0"));
        Structure struct = new StructureImpl();
        struct.getTexts().add("text1");
        struct.setText("sdo");
        struct.setInt(3);
        struct.setDbl(123.5);
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        p.writeTo(struct, Structure.class, Structure.class,
            new Annotation[0], MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), bos);
        String data = "{\"p0.Structure\":{\"@xsi.type\":\"p0:Structure\",\"p0.text\":\"sdo\",\"p0.int\":3"
            + ",\"p0.dbl\":123.5,\"p0.texts\":\"text1\"}}";
View Full Code Here

Examples of org.apache.cxf.systest.jaxrs.sdo.impl.StructureImpl

    @SuppressWarnings("unchecked")
    @GET
    @Path("/structure")
    @Produces({"application/xml", "application/json" })
    public Structure getStructure() {
        Structure struct = new StructureImpl();
        struct.getTexts().add("text1");
        struct.setText("sdo");
        struct.setInt(3);
        struct.setDbl(123.5);
        return struct;
    }
View Full Code Here

Examples of org.apache.slide.structure.StructureImpl

       
        lockHelper =
            new LockImpl(namespace, namespace.getConfig(), securityHelper);
       
        structureHelper =
            new StructureImpl(namespace, namespace.getConfig(),
                              securityHelper, lockHelper);
        contentHelper =
            new ContentImpl(namespace, namespace.getConfig(), securityHelper,
                            structureHelper, lockHelper);
        searchHelper =
View Full Code Here

Examples of org.apache.slide.structure.StructureImpl

       
        lockHelper =
            new LockImpl(namespace, namespace.getConfig(), securityHelper);
       
        structureHelper =
            new StructureImpl(namespace, namespace.getConfig(),
                              securityHelper, lockHelper);
        contentHelper =
            new ContentImpl(namespace, namespace.getConfig(), securityHelper,
                            structureHelper, lockHelper);
        searchHelper =
View Full Code Here

Examples of org.apache.slide.structure.StructureImpl

     Security security = new ACLSecurityImpl(event.getNamespace(),
                                             event.getNamespace().getConfig());
     Lock lock = new LockImpl(event.getNamespace(),
                              event.getNamespace().getConfig(),
                              security);
     Structure structure = new StructureImpl(event.getNamespace(),
                              event.getNamespace().getConfig(),
                              security,
                              lock);
     Content helper = new ContentImpl(
           event.getNamespace(),
View Full Code Here

Examples of org.apache.slide.structure.StructureImpl

       
        lockHelper =
            new LockImpl(namespace, namespace.getConfig(), securityHelper);
       
        structureHelper =
            new StructureImpl(namespace, namespace.getConfig(),
                              securityHelper, lockHelper);
        contentHelper =
            new ContentImpl(namespace, namespace.getConfig(), securityHelper,
                            structureHelper, lockHelper);
        searchHelper =
View Full Code Here

Examples of org.biojava.bio.structure.StructureImpl

  private Structure structure; //biojava object

  public JSimJmolAdapter() {
    super("JSimJMolAdapter");

    structure = new StructureImpl();
  }
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.