Package slash.navigation.gpx.trackpoint2

Examples of slash.navigation.gpx.trackpoint2.ObjectFactory


      JAXBContext jaxbContext=JAXBContext.newInstance("org.apache.juddi.api_v3");
      Marshaller marshaller = jaxbContext.createMarshaller();
      marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
      marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
      marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
      ObjectFactory factory = new ObjectFactory();
      GetPublisherDetail getPublisherDetail = new GetPublisherDetail();
      getPublisherDetail.authInfo = "some token";
     
      StringWriter writer = new StringWriter();
      JAXBElement<GetPublisherDetail> element = new JAXBElement<GetPublisherDetail>(new QName("","fragment"),GetPublisherDetail.class,getPublisherDetail);
View Full Code Here


      UDDISubscriptionPortType subscriptionService = transport.getUDDISubscriptionService();
      List<org.uddi.sub_v3.Subscription> subscriptions = subscriptionService.getSubscriptions(authToken);
      for (org.uddi.sub_v3.Subscription subscription : subscriptions) {
        String expiresAfter = null;
        if (subscription.getExpiresAfter()!=null) expiresAfter = subscription.getExpiresAfter().toString();
        String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(subscription.getSubscriptionFilter()), "org.uddi.sub_v3");
        Subscription modelSubscription = new Subscription(
            (subscription.getBindingKey()==null)?"":subscription.getBindingKey(),
            subscription.isBrief(),
            expiresAfter,
            subscription.getMaxEntities(),
View Full Code Here

      String authToken = (String) session.getAttribute("token-" + clerk.getName());
      subscriptionService.saveSubscription(authToken, subscriptionHolder);
      subscription = subscriptionHolder.value.get(0);
      String expiresAfter = null;
      if (subscription.getExpiresAfter()!=null) expiresAfter = subscription.getExpiresAfter().toString();
      String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(subscription.getSubscriptionFilter()), "org.uddi.sub_v3");
      Subscription savedModelSubscription = new Subscription(
          (subscription.getBindingKey()==null)?"":subscription.getBindingKey(),
          subscription.isBrief(),
          expiresAfter,
          subscription.getMaxEntities(),
View Full Code Here

    } else {
      modelSubscription.setBrief(new Boolean(false));
    }
     
    try {
      String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(apiSubscription.getSubscriptionFilter()), "org.uddi.sub_v3");
      logger.debug("marshalled subscription filter:  " + rawFilter);
      modelSubscription.setSubscriptionFilter(rawFilter);

    } catch (JAXBException e) {
      logger.error("JAXBException while marshalling subscription filter", e);
View Full Code Here

    } else {
      modelSubscription.setBrief(new Boolean(false));
    }
     
   
    String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(apiSubscription.getSubscriptionFilter()), "org.uddi.sub_v3");
    logger.debug("marshalled subscription filter:  " + rawFilter);
    modelSubscription.setSubscriptionFilter(rawFilter);
   
  }
View Full Code Here

    } else {
      modelSubscription.setBrief(new Boolean(false));
    }
     
    try {
      String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(apiSubscription.getSubscriptionFilter()), "org.uddi.sub_v3");
      logger.debug("marshalled subscription filter:  " + rawFilter);
      modelSubscription.setSubscriptionFilter(rawFilter);

    } catch (JAXBException e) {
      logger.error("JAXBException while marshalling subscription filter", e);
View Full Code Here

                } else {
                        modelSubscription.setBrief(Boolean.FALSE);
                }


                String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(apiSubscription.getSubscriptionFilter()), "org.uddi.sub_v3");
                logger.debug("marshalled subscription filter:  " + rawFilter);
                modelSubscription.setSubscriptionFilter(rawFilter);

        }
View Full Code Here

    } else {
      modelSubscription.setBrief(new Boolean(false));
    }
     
   
    String rawFilter = JAXBMarshaller.marshallToString(new ObjectFactory().createSubscriptionFilter(apiSubscription.getSubscriptionFilter()), "org.uddi.sub_v3");
    logger.debug("marshalled subscription filter:  " + rawFilter);
    modelSubscription.setSubscriptionFilter(rawFilter);
   
  }
View Full Code Here

        if (extensions != null) {
            for (Object any : extensions.getAny()) {
                if (any instanceof JAXBElement) {
                    Object anyValue = ((JAXBElement) any).getValue();
                    if (anyValue instanceof TrackPointExtensionT) {
                        TrackPointExtensionT trackPoint = (TrackPointExtensionT) anyValue;
                        result = trackPoint.getSpeed();
                        // everything is converted from m/s to Km/h except for the exceptional case
                        if (!hasSpeedInKiloMeterPerHourInsteadOfMeterPerSecond)
                            result = asKmh(result);
                    }
View Full Code Here

        if (extensions != null) {
            for (Object any : extensions.getAny()) {
                if (any instanceof JAXBElement) {
                    Object anyValue = ((JAXBElement) any).getValue();
                    if (anyValue instanceof TrackPointExtensionT) {
                        TrackPointExtensionT trackPoint = (TrackPointExtensionT) anyValue;
                        result = formatDouble(trackPoint.getCourse());
                    }

                } else if (any instanceof Element) {
                    Element element = (Element) any;
                    if ("course".equals(element.getLocalName()))
View Full Code Here

TOP

Related Classes of slash.navigation.gpx.trackpoint2.ObjectFactory

Copyright © 2018 www.massapicom. 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.