Examples of ObjectFactory


Examples of org.wijiscommons.ssaf.schema.search.ObjectFactory

   * @return
   */
  private RecordRetrievalResult constructObject(String recordUri, Node node)
  {
    // Get RecordRetrievalResult Object from JAXB ObjectFactory
    RecordRetrievalResult result = new ObjectFactory().createRecordRetrievalResult();
   
    // If node is not null add to Payload Object
    // else add to Empty Object
    if (node != null)
    {
View Full Code Here

Examples of org.xmlsoap.schemas.soap.envelope.ObjectFactory

        Envelope envelope = new Envelope();
        if (headerContent.size() > 0) {
            envelope.setHeader(header);
        }
        envelope.setBody(body);
        JAXBElement<Envelope> envelopeEl = new ObjectFactory().createEnvelope(envelope);
        super.marshal(exchange, envelopeEl, stream);
    }
View Full Code Here

Examples of org.xwiki.rest.model.jaxb.ObjectFactory

        random = new Random();

        JAXBContext context = JAXBContext.newInstance("org.xwiki.rest.model.jaxb");
        marshaller = context.createMarshaller();
        unmarshaller = context.createUnmarshaller();
        objectFactory = new ObjectFactory();

    }
View Full Code Here

Examples of payment.creditcard.ObjectFactory

    private Map<String, Customer> customers = new HashMap<String, Customer>();

    @Init
    public void init() {
        // Load the customers
        ObjectFactory factory = new ObjectFactory();
        CreditCardDetailsType cc = factory.createCreditCardDetailsType();
        PayerType john = factory.createPayerType();
        john.setName("John Smith");
        cc.setCardOwner(john);
        cc.setCreditCardNumber("1111-2222-3333-4444");
        cc.setCreditCardType(CreditCardTypeType.VISA);
        cc.setCVV2("1234");
View Full Code Here

Examples of rabbit.data.internal.xml.schema.events.ObjectFactory

    File f = new File(System.getProperty("user.home") + File.separator
        + "tmpTestFile.xml");
    assertFalse(f.exists());

    store.write(new ObjectFactory().createEventListType(), f);
    assertTrue(f.exists());
    if (!f.delete()) {
      System.err.println("File is not deleted.");
    }
  }
View Full Code Here

Examples of ru.yandex.qatools.allure.model.ObjectFactory

    public static void writeTestSuiteResult(TestSuiteResult testSuite) {
        File testSuiteResultFile = new File(getResultsDirectory(), generateTestSuiteFileName());

        try {
            marshaller(TestSuiteResult.class).marshal(
                    new ObjectFactory().createTestSuite(testSuite),
                    testSuiteResultFile
            );
        } catch (Exception e) {
            LOGGER.error("Error while marshaling testSuite", e);
        }
View Full Code Here

Examples of schemafiles.ObjectFactory

     private ObjectFactory objectFactory;
     private Shiporder shipOrder;
    
     public TestJAXB()
     {
       this.objectFactory = new ObjectFactory();
       this.shipOrder = this.objectFactory.createShiporder();
     }
View Full Code Here

Examples of slash.navigation.download.queue.binding.ObjectFactory

    }

    public static void marshal(QueueType queueType, OutputStream out) throws JAXBException {
        try {
            try {
                newMarshaller().marshal(new ObjectFactory().createQueue(queueType), out);
            } finally {
                out.flush();
                out.close();
            }
        } catch (IOException e) {
View Full Code Here

Examples of slash.navigation.fpl.binding.ObjectFactory

        FlightPlan flightPlan = unmarshal(source);
        context.appendRoute(process(flightPlan));
    }

    private FlightPlan createFpl(GarminFlightPlanRoute route, int startIndex, int endIndex) {
        ObjectFactory objectFactory = new ObjectFactory();

        FlightPlan flightPlan = objectFactory.createFlightPlan();
        FlightPlan.Route flightPlanRoute = objectFactory.createFlightPlanRoute();
        flightPlanRoute.setRouteName(asRouteName(route.getName()));
        flightPlanRoute.setRouteDescription(asDescription(route.getDescription()));
        flightPlanRoute.setFlightPlanIndex((short) 1);
        FlightPlan.WaypointTable waypointTable = objectFactory.createFlightPlanWaypointTable();

        List<GarminFlightPlanPosition> positions = route.getPositions();
        for (int i = startIndex; i < endIndex; i++) {
            GarminFlightPlanPosition position = positions.get(i);

            FlightPlan.Route.RoutePoint routePoint = objectFactory.createFlightPlanRouteRoutePoint();
            String countryCode = "";
            if (position.getCountryCode() != null && position.getWaypointType() != null && !position.getWaypointType().equals(UserWaypoint))
                countryCode = position.getCountryCode().value();
            routePoint.setWaypointCountryCode(countryCode);
            routePoint.setWaypointIdentifier(position.getIdentifier());
            if (position.getWaypointType() != null)
                routePoint.setWaypointType(position.getWaypointType().value());
            flightPlanRoute.getRoutePoint().add(routePoint);

            FlightPlan.WaypointTable.Waypoint waypoint = objectFactory.createFlightPlanWaypointTableWaypoint();
            waypoint.setComment(position.getDescription());
            waypoint.setCountryCode(countryCode);
            waypoint.setElevation(formatElevation(position.getElevation()));
            waypoint.setIdentifier(position.getIdentifier());
            waypoint.setLat(formatPosition(position.getLatitude()));
View Full Code Here

Examples of slash.navigation.gopal.binding3.ObjectFactory

    }

    private Tour.Options createOptions(GoPalRoute route) {
        Tour.Options options = route.getOptions(Tour.Options.class);
        if (options == null) {
            options = new ObjectFactory().createTourOptions();
            options.setType((short) preferences.getInt(VERSION_PREFIX + "type", 3)); // Fahrzeugtyp: 0=PKW 1=Fussgaenger 2=Fahrrad 3=Motorrad
            options.setMode((short) preferences.getInt(VERSION_PREFIX + "mode", 2)); // Art der Route: 0=kurz 1=schnell 2=Oekonomisch
            options.setFerries((short) preferences.getInt(VERSION_PREFIX + "ferries", 1)); // Faehren: 0=meiden 1=verwenden
            options.setMotorWays((short) preferences.getInt(VERSION_PREFIX + "motorWays", 0)); // Autobahn: 0=meiden 1=verwenden
            options.setTollRoad((short) preferences.getInt(VERSION_PREFIX + "tollRoad", 1)); // Mautstrassen: 0=meiden 1=verwenden
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.