• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java XMLGregorianCalendarImpl类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl的典型用法代码示例。如果您正苦于以下问题:Java XMLGregorianCalendarImpl类的具体用法?Java XMLGregorianCalendarImpl怎么用?Java XMLGregorianCalendarImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XMLGregorianCalendarImpl类属于com.sun.org.apache.xerces.internal.jaxp.datatype包,在下文中一共展示了XMLGregorianCalendarImpl类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initPriceModel

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public PriceModelType initPriceModel(PriceModelHistory referenceHistory,
        long startTimeForPeriod, long endTimeForPeriod, String productId) {
    final PriceModelType priceModelType = factory.createPriceModelType();
    priceModelType.setId(String.valueOf(referenceHistory.getObjKey()));
    priceModelType.setServiceId(productId);
    priceModelType.setCalculationMode(PriceModelCalculationType
            .fromValue(referenceHistory.getType().name()));

    // add usage period information
    final PeriodType periodType = factory.createPeriodType();
    periodType.setStartDate(Long.valueOf(startTimeForPeriod));
    periodType.setStartDateIsoFormat(XMLGregorianCalendarImpl
            .parse(DateConverter.convertLongToIso8601DateTimeFormat(
                    startTimeForPeriod,
                    TimeZone.getTimeZone(DateConverter.TIMEZONE_ID_GMT))));
    periodType.setEndDate(Long.valueOf(endTimeForPeriod));
    periodType.setEndDateIsoFormat(XMLGregorianCalendarImpl
            .parse(DateConverter.convertLongToIso8601DateTimeFormat(
                    endTimeForPeriod,
                    TimeZone.getTimeZone(DateConverter.TIMEZONE_ID_GMT))));
    priceModelType.setUsagePeriod(periodType);
    return priceModelType;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:24,代码来源:BillingResultAssembler.java


示例2: testAddSinglePayment

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
@Test
public void testAddSinglePayment() throws Exception {
    //Given
    final XMLGregorianCalendar date = new XMLGregorianCalendarImpl();
    date.setYear(2015);
    date.setMonth(Calendar.DECEMBER);
    date.setDay(28);
    final DDService ddService = new DDServiceDefault();
    final AddSinglePaymentRequest request = new AddSinglePaymentRequest();
    request.setCreditor(new Creditor());
    request.getCreditor().setCreditorScheme(new CreditorScheme());
    request.getCreditor().getCreditorScheme().setScheme(SchemeType.CORE);
    request.getCreditor().getCreditorScheme().setCreditorSchemeId("BE31XXX12345");
    request.setMandateInfo(new MandateInfo());
    request.getMandateInfo().setDomesticMandateId("123456789012");
    request.setPmtDate(date);
    request.setPmtAmt(new BigDecimal("102.34"));
    //When
    final AddSinglePaymentResponse response = ddService.addSinglePayment(request);
    //Then
}
 
开发者ID:sentenial,项目名称:sentenial-ws-client,代码行数:22,代码来源:DDServiceDefaultTest.java


示例3: getRespuestaXStream

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public static XStream getRespuestaXStream()
{
  XStream xstream = new XStream(new XppDriver()
  {
    public HierarchicalStreamWriter createWriter(Writer out)
    {
      return new PrettyPrintWriter(out)
      {
        protected void writeText(QuickWriter writer, String text)
        {
          writer.write(text);
        }
      };
    }
  });
  xstream.alias("respuesta", RespuestaComprobante.class);
  xstream.alias("autorizacion", Autorizacion.class);
  xstream.alias("fechaAutorizacion", XMLGregorianCalendarImpl.class);
  xstream.alias("mensaje", Mensaje.class);
  xstream.registerConverter(new RespuestaDateConverter());

  return xstream;
}
 
开发者ID:jorjoluiso,项目名称:FirmaDigital,代码行数:24,代码来源:XStreamUtil.java


示例4: getRespuestaLoteXStream

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public static XStream getRespuestaLoteXStream()
{
  XStream xstream = new XStream(new XppDriver()
  {
    public HierarchicalStreamWriter createWriter(Writer out)
    {
      return new PrettyPrintWriter(out)
      {
        protected void writeText(QuickWriter writer, String text)
        {
          writer.write(text);
        }
      };
    }
  });
  xstream.alias("respuesta", RespuestaLote.class);
  xstream.alias("autorizacion", Autorizacion.class);
  xstream.alias("fechaAutorizacion", XMLGregorianCalendarImpl.class);
  xstream.alias("mensaje", Mensaje.class);
  xstream.registerConverter(new RespuestaDateConverter());

  return xstream;
}
 
开发者ID:jorjoluiso,项目名称:FirmaDigital,代码行数:24,代码来源:XStreamUtil.java


示例5: initParameter

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public ParameterType initParameter(XParameterPeriodValue periodValue,
        PriceModelInput priceModelInput) {
    final ParameterType parameterType = factory.createParameterType();
    parameterType.setId(periodValue.getId());
    final TimeZone timeZone = TimeZone
            .getTimeZone(DateConverter.TIMEZONE_ID_GMT);

    long periodStart = periodValue.getStartTime();
    long periodEnd = usageEndTimeForBillingResult(periodStart,
            periodValue.getEndTime(), priceModelInput);

    final PeriodType periodType = factory.createPeriodType();
    periodType.setStartDate(Long.valueOf(periodStart));
    periodType.setStartDateIsoFormat(XMLGregorianCalendarImpl
            .parse(DateConverter.convertLongToIso8601DateTimeFormat(
                    periodStart, timeZone)));
    periodType.setEndDate(Long.valueOf(periodEnd));
    periodType.setEndDateIsoFormat(XMLGregorianCalendarImpl
            .parse(DateConverter.convertLongToIso8601DateTimeFormat(
                    periodEnd, timeZone)));
    parameterType.setParameterUsagePeriod(periodType);

    final ParameterValueType parameterValueType = factory
            .createParameterValueType();
    parameterValueType.setType(ParameterDataType.valueOf(periodValue
            .getValueType().name()));
    parameterValueType.setAmount(periodValue.getValue());
    parameterType.setParameterValue(parameterValueType);
    return parameterType;
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:31,代码来源:BillingResultAssembler.java


示例6: genTaxYear

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
protected XMLGregorianCalendar genTaxYear(int year) {
	XMLGregorianCalendar taxyear = new XMLGregorianCalendarImpl(new GregorianCalendar());
	taxyear.setTimezone(DatatypeConstants.FIELD_UNDEFINED);
	taxyear.setTime(DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED);
	taxyear.setDay(DatatypeConstants.FIELD_UNDEFINED);
	taxyear.setMonth(DatatypeConstants.FIELD_UNDEFINED);
	taxyear.setYear(year);
	return taxyear;
}
 
开发者ID:IRSgov,项目名称:IDES-Data-Preparation-Java,代码行数:10,代码来源:FATCAPackager.java


示例7: testAddPaymentSchedule

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
@Test
public void testAddPaymentSchedule() throws Exception {
    //Given
    final PaymentScheduleService paymentScheduleService = new PaymentScheduleServiceDefault();
    //When
    final XMLGregorianCalendar xmlDate = new XMLGregorianCalendarImpl();
    xmlDate.setYear(2015);
    xmlDate.setMonth(Calendar.DECEMBER);
    xmlDate.setDay(28);
    final AddPaymentScheduleRequest request = new AddPaymentScheduleRequest();
    request.setCreditor(new Creditor());
    request.getCreditor().setCreditorScheme(new CreditorScheme());
    request.getCreditor().getCreditorScheme().setCreditorSchemeId("BE31XXX12345");
    request.getCreditor().getCreditorScheme().setScheme(SchemeType.CORE);
    request.setMandateInfo(new MandateInfo());
    request.getMandateInfo().setMandateId("mandateId1");
    request.getMandateInfo().setDomesticMandateId("123456789012");
    request.setPaymentScheduleInfo(new PaymentScheduleInfo());
    request.getPaymentScheduleInfo().setScheduleId("123");
    request.getPaymentScheduleInfo().setFrequency(PaymentFrequency.DAILY);
    request.getPaymentScheduleInfo().setPmtType(PaymentType.FIXED_LENGTH);
    request.getPaymentScheduleInfo().setStartDate(xmlDate);
    request.getPaymentScheduleInfo().setNoOfPayments("5");
    request.getPaymentScheduleInfo().setPmtAmt(new BigDecimal("102.12"));
    request.getPaymentScheduleInfo().setRemittanceInfo("Remittance Info");
    //Then
    final AddPaymentScheduleResponse response = paymentScheduleService.addPaymentSchedule(request);
}
 
开发者ID:sentenial,项目名称:sentenial-ws-client,代码行数:29,代码来源:PaymentScheduleServiceDefaultTest.java


示例8: unmarshal

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext uc)
{
  Date date = null;
  try {
    date = Constantes.dateTimeFormat.parse(reader.getValue());
  } catch (ParseException ex) {
    Logger.getLogger(RespuestaDateConverter.class.getName()).log(Level.SEVERE, null, ex);
  }
  GregorianCalendar cal = new GregorianCalendar();
  cal.setTime(date);
  XMLGregorianCalendarImpl item = new XMLGregorianCalendarImpl(cal);

  return item;
}
 
开发者ID:jorjoluiso,项目名称:FirmaDigital,代码行数:15,代码来源:RespuestaDateConverter.java


示例9: testHostSerialization

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
/**
 * Test whether all used entities can be properly serialized and deserialized
 * by the object mapper when wrapped with oVirt SDK decorators.
 * @throws Exception
 */
@Test
public void testHostSerialization() throws Exception{
    JacksonContextResolver contextResolver = new JacksonContextResolver();
    ObjectMapper mapper = contextResolver.getContext(Host.class);

    when(httpProxy.getUrl()).thenReturn(new URL("http://localhost/api/hosts"));
    HttpProxyBroker broker = new HttpProxyBroker(httpProxy);

    List<Object> objects = new ArrayList<>();

    Host h = new Host(broker);
    h.setId("test-host");
    objects.add(h);

    VM vm = new VM(broker);
    vm.setId("test-vm");
    vm.setStartTime(new XMLGregorianCalendarImpl());
    vm.setMemory(2048L);
    objects.add(vm);

    Network net = new Network(broker);
    net.setId("test-net");
    objects.add(net);

    SchedulingPolicy schedulingPolicy = new SchedulingPolicy(broker);
    schedulingPolicy.setId("test-policy");
    objects.add(schedulingPolicy);

    Property property = new Property();
    property.setName("test-prop");
    objects.add(property);

    String json = mapper.writer().writeValueAsString(objects);
    mapper.reader().withType(List.class).readValue(json);
}
 
开发者ID:oVirt,项目名称:ovirt-optimizer,代码行数:41,代码来源:OvirtSdkReserializationTest.java


示例10: createMetricMessage

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
static MetricsMessageCollection createMetricMessage(final Map<String, Object> headers, final String url,
                                                    final String contextPath, MetricType metricType,
                                                    String locationInCLuster)
        throws Exception {

    MetricsMessageCollection collection = new MetricsMessageCollection();
    MetricsMessage metricsMessage = new MetricsMessage();
    metricsMessage.setServerId(IpAddresssUtil.getLocalHostAddress().toString());
    metricsMessage.setLocationInCluster(locationInCLuster);
    metricsMessage.setTargetEndpoint(url);
    metricsMessage.setContext(contextPath);
    metricsMessage.setMetricType(metricType);

    Iterator<String> it = headers.keySet().iterator();
    while (it.hasNext()) {
        String key = it.next();
        if (headers.get(key) == null) {
            continue;
        }
        if (MetricFieldCollection.INSTANCE.shouldCaptureField(key) == false) {
            continue;
        }
        try {
            KeyValuePair keyValuePair = new KeyValuePair();
            keyValuePair.setKey(key);
            keyValuePair.setValueType(ValueType.STRING);
            keyValuePair.setStringValue(String.valueOf(headers.get(key)));
            metricsMessage.getHeaders().add(keyValuePair);
        } catch (Exception e) {
            //do nothing
        }
    }

    metricsMessage.setTargetEndpoint(url == null ? "" : url);
    metricsMessage.setServerId(IpAddresssUtil.getLocalHostAddress().toString());
    metricsMessage.setContext(contextPath == null ? "" : contextPath);
    DateTime dateTime = new DateTime();
    final GregorianCalendar calendar = new GregorianCalendar(dateTime.getZone().toTimeZone());
    calendar.setTimeInMillis(dateTime.getMillis());
    metricsMessage.setDateTimeCreated(new XMLGregorianCalendarImpl(calendar));

    collection.getMessages().add(metricsMessage);
    return collection;
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:45,代码来源:UrlExtractor.java


示例11: install

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
@Override
public void install(ApplicationOptions options){
    Validate.notNull(options, "options must not be null");

    String serversCommaSeparated = options.getServersCommaSeparated();
    if (serversCommaSeparated != null && serversCommaSeparated.length() > 0) {
        String localAddress = IpAddresssUtil.getLocalHostAddress();
        serversCommaSeparated = serversCommaSeparated.trim();
        if (!serversCommaSeparated.contains(localAddress)) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Skipping installation as local ip address {} is not specified " +
                        "in 'serversCommaSeparated' in {}", localAddress, options);
                return;
            }
        }
    }

    InstallationResponse response = new InstallationResponse();
    response.setApplicationOptions(options);

    response.setNodeIdentifier(installationRequestListener.getLocalEndpoint());

    DateTime dateTime = new DateTime();
    final GregorianCalendar calendar = new GregorianCalendar(dateTime.getZone().toTimeZone());
    calendar.setTimeInMillis(dateTime.getMillis());
    response.setInstallTime(new XMLGregorianCalendarImpl(calendar));

    //download the files here
    downloadDeploymentFile(options);
    downloadConfigurationFile(options);

    int index = options.getInstallationOriginUriForConfigurationFile().lastIndexOf("/");
    String fileName = options.getInstallationOriginUriForConfigurationFile().substring(index + 1);

    try {
        extractFile(options.getDeploymentFile(), options.getDeploymentType());

        List<String> files = new ArrayList<>();
        files.add(fileName);
        applicationLaunchService.launchApplications(BeyondJHazelcastInstallationService.class, files, installationDelegate.getLocalEndpoint());
        response.setDeploymentStatus(DeploymentStatus.COMPLETED);
    } catch (Exception e) {
        LOG.error("Failed to install", e);
        response.setDeploymentStatus(DeploymentStatus.FAILED);
    }
    installationDelegate.respond(response);
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:48,代码来源:BeyondJHazelcastInstallationService.java


示例12: install

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
@Override
public void install(ApplicationOptions options) {
    Validate.notNull(options, "options must not be null");

    String serversCommaSeparated = options.getServersCommaSeparated();
    if (serversCommaSeparated != null && serversCommaSeparated.length() > 0) {
        String localAddress = IpAddresssUtil.getLocalHostAddress();
        serversCommaSeparated = serversCommaSeparated.trim();
        if (!serversCommaSeparated.contains(localAddress)) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Skipping installation as local ip address {} is not specified " +
                        "in 'serversCommaSeparated' in {}", localAddress, options);
                return;
            }
        }
    }

    InstallationResponse response = new InstallationResponse();
    response.setApplicationOptions(options);

    response.setNodeIdentifier(installationRequestListener.getLocalEndpoint());

    DateTime dateTime = new DateTime();
    final GregorianCalendar calendar = new GregorianCalendar(dateTime.getZone().toTimeZone());
    calendar.setTimeInMillis(dateTime.getMillis());
    response.setInstallTime(new XMLGregorianCalendarImpl(calendar));

    //download the files here
    downloadDeploymentFile(options);
    downloadConfigurationFile(options);

    int index = options.getInstallationOriginUriForConfigurationFile().lastIndexOf("/");
    String fileName = options.getInstallationOriginUriForConfigurationFile().substring(index + 1);

    try {
        extractFile(options.getDeploymentFile(), options.getDeploymentType());

        List<String> files = new ArrayList<>();
        files.add(fileName);
        applicationLaunchService.launchApplications(BeyondJConsulInstallationService.class, files, installationDelegate.getLocalEndpoint());
        response.setDeploymentStatus(DeploymentStatus.COMPLETED);
    } catch (Exception e) {
        LOG.error("Failed to install", e);
        response.setDeploymentStatus(DeploymentStatus.FAILED);
    }
    installationDelegate.respond(response);
}
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:48,代码来源:BeyondJConsulInstallationService.java


示例13: collectMetrics

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
private MetricsMessageCollection collectMetrics() {

        List<ConnectorStatistics> connectors = jettyHttpServer.getStatisticsConnectors();
        MetricsMessageCollection collection = new MetricsMessageCollection();

        for (ConnectorStatistics connector : connectors) {
            ConnectorStatistics statisticsConnector = (ConnectorStatistics) connector;
            MetricsMessage metricsMessage = new MetricsMessage();
            metricsMessage.setServerId(IpAddresssUtil.getLocalHostAddress().toString());
            metricsMessage.setLocationInCluster(options.getLocationInCluster());
            metricsMessage.setTargetEndpoint(options.getBundleInstanceId());
            metricsMessage.setContext(options.getContextPath());
            collection.getMessages().add(metricsMessage);
            int connections = statisticsConnector.getConnections();
            addMetric(metricsMessage, CONNECTIONS, connections);
            long connectionDurationMax = statisticsConnector.getConnectionDurationMax();
            addMetric(metricsMessage, CONNECTION_DURATION_MAX, connectionDurationMax);
            double connectionDurationMean = statisticsConnector.getConnectionDurationMean();
            addMetric(metricsMessage, CONNECTION_DURATION_MEAN, connectionDurationMean);
            double connectionDurationStdDev = statisticsConnector.getConnectionDurationStdDev();
            addMetric(metricsMessage, CONNECTION_DURATION_STD_DEV, connectionDurationStdDev);
            int messagesIn = statisticsConnector.getMessagesIn();
            addMetric(metricsMessage, MESSAGES_IN, messagesIn);
            int messagesInPerConnectionMax = statisticsConnector.getMessagesInPerConnectionMax();
            addMetric(metricsMessage, MESSAGES_IN_PER_CONNECTION_MAX, messagesInPerConnectionMax);
            double messagesInPerConnectionMean = statisticsConnector.getMessagesInPerConnectionMean();
            addMetric(metricsMessage, MESSAGES_IN_PER_CONNECTION_MEAN, messagesInPerConnectionMean);
            double messagesInPerConnectionStdDev = statisticsConnector.getMessagesInPerConnectionStdDev();
            addMetric(metricsMessage, MESSAGES_IN_PER_CONNECTION_STD_DEV, messagesInPerConnectionStdDev);
            int connectionsOpen = statisticsConnector.getConnectionsOpen();
            addMetric(metricsMessage, CONNECTIONS_OPEN, connectionsOpen);
            int connectionsOpenMax = statisticsConnector.getConnectionsOpenMax();
            addMetric(metricsMessage, CONNECTIONS_OPEN_MAX, connectionsOpenMax);
            int messagesOut = statisticsConnector.getMessagesOut();
            addMetric(metricsMessage, MESSAGES_OUT, messagesOut);
            int messagesOutPerConnectionMax = statisticsConnector.getMessagesOutPerConnectionMax();
            addMetric(metricsMessage, MESSAGES_OUT_PER_CONNECTION_MAX, messagesOutPerConnectionMax);
            double messagesOutPerConnectionMean = statisticsConnector.getMessagesOutPerConnectionMean();
            addMetric(metricsMessage, MESSAGES_OUT_PER_CONNECTION_MEAN, messagesOutPerConnectionMean);
            double messagesOutPerConnectionStdDev = statisticsConnector.getMessagesOutPerConnectionStdDev();
            addMetric(metricsMessage, MESSAGES_OUT_PER_CONNECTION_STD_DEV, messagesOutPerConnectionStdDev);
            long startedMillis = statisticsConnector.getStartedMillis();
            addMetric(metricsMessage, STARTED_MILLIS, startedMillis);
            int messagesInPerSecond = statisticsConnector.getMessagesInPerSecond();
            addMetric(metricsMessage, MESSAGES_IN_PER_SECOND, messagesInPerSecond);
            int messagesOutPerSecond = statisticsConnector.getMessagesOutPerSecond();
            addMetric(metricsMessage, MESSAGES_OUT_PER_SECOND, messagesOutPerSecond);

            DateTime dateTime = new DateTime();
            final GregorianCalendar calendar = new GregorianCalendar(dateTime.getZone().toTimeZone());
            calendar.setTimeInMillis(dateTime.getMillis());
            metricsMessage.setDateTimeCreated(new XMLGregorianCalendarImpl(calendar));

/*
            if (options.isEnableProfiling()) {
                //Thread pool stats
                try {
                    ThreadPoolStats stats = getThreadPoolStats();
                    addMetric(metricsMessage, REQUESTS_PER_SECOND_RETIREMENT_RATE, stats.getRequestPerSecondRetirementRate());
                    addMetric(metricsMessage, AVERAGE_SERVICE_TIME, stats.getAverageServiceTime());
                    addMetric(metricsMessage, AVERAGET_TIME_WAITING_IN_POOL, stats.getAverageTimeWaitingInPool());
                    addMetric(metricsMessage, AVERAGET_RESPONSE_TIME, stats.getAverageResponseTime());
                    addMetric(metricsMessage, ESTIMATED_AVERAGE_NUMBER_OF_ACTIVE_REQUESTS, stats.getEstimatedAverageNumberOfActiveRequests());
                    addMetric(metricsMessage, RATION_OF_DEAD_TIME_TO_RESPONSE_TIME, stats.getRatioOfDeadTimeToResponseTime());
                    addMetric(metricsMessage, AVERAGE_NUMBER_OF_ACTIVE_REQUESTS, stats.getAverageNumberOfActiveRequests());
                } catch (Exception e) {
                    //do nothing
                }
            }
*/
        }
        return collection;
    }
 
开发者ID:nkasvosve,项目名称:beyondj,代码行数:74,代码来源:JettyLauncher.java


示例14: convert

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
@Override
public XMLGregorianCalendar convert(LocalDate source) {
    return new XMLGregorianCalendarImpl(new GregorianCalendar(source.getYear(), source.getMonthValue(), source.getDayOfMonth()));
}
 
开发者ID:Salmondx,项目名称:spring-soap-client-starter,代码行数:5,代码来源:DateConverter.java


示例15: canConvert

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public boolean canConvert(Class clazz)
{
  return clazz.equals(XMLGregorianCalendarImpl.class);
}
 
开发者ID:jorjoluiso,项目名称:FirmaDigital,代码行数:5,代码来源:RespuestaDateConverter.java


示例16: marshal

import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl; //导入依赖的package包/类
public void marshal(Object o, HierarchicalStreamWriter writer, MarshallingContext mc) {
  XMLGregorianCalendarImpl i = (XMLGregorianCalendarImpl)o;
  writer.setValue(Constantes.dateTimeFormat.format(i.toGregorianCalendar().getTime()));
}
 
开发者ID:jorjoluiso,项目名称:FirmaDigital,代码行数:5,代码来源:RespuestaDateConverter.java



注:本文中的com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RDFHandler类代码示例发布时间:2022-05-22
下一篇:
Java FileOptions类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap