Examples of XSDateTime


Examples of org.apache.xerces.xs.datatypes.XSDateTime

                case XSConstants.GMONTHDAY_DT:
                case XSConstants.GYEAR_DT:
                case XSConstants.GYEARMONTH_DT:
                case XSConstants.DURATION_DT:
                case XSConstants.TIME_DT:
                    XSDateTime dt = (XSDateTime)value;
                    System.out.println(dt.getDays());
                    break;
                   
                case XSConstants.FLOAT_DT:
                    XSFloat f = (XSFloat)value;
                    System.out.println(f.getValue());
View Full Code Here

Examples of org.apache.xerces.xs.datatypes.XSDateTime

                case XSConstants.GMONTHDAY_DT:
                case XSConstants.GYEAR_DT:
                case XSConstants.GYEARMONTH_DT:
                case XSConstants.DURATION_DT:
                case XSConstants.TIME_DT:
                    XSDateTime dt = (XSDateTime)value;
                    System.out.println(dt.getDays());
                    break;
                   
                case XSConstants.FLOAT_DT:
                    XSFloat f = (XSFloat)value;
                    System.out.println(f.getValue());
View Full Code Here

Examples of org.apache.xerces.xs.datatypes.XSDateTime

                case XSConstants.GMONTHDAY_DT:
                case XSConstants.GYEAR_DT:
                case XSConstants.GYEARMONTH_DT:
                case XSConstants.DURATION_DT:
                case XSConstants.TIME_DT:
                    XSDateTime dt = (XSDateTime)value;
                    System.out.println(dt.getDays());
                    break;
                   
                case XSConstants.FLOAT_DT:
                    XSFloat f = (XSFloat)value;
                    System.out.println(f.getValue());
View Full Code Here

Examples of org.exolab.castor.builder.types.XSDateTime

                if (!simpleType.isBuiltInType()) {
                    xsDate.setFacets(simpleType);
                }
                return xsDate;
            case SimpleTypesFactory.DATETIME_TYPE:       //-- dateTime
                XSDateTime xsDateTime = new XSDateTime();
                if (!simpleType.isBuiltInType()) {
                    xsDateTime.setFacets(simpleType);
                }
                return xsDateTime;
            case SimpleTypesFactory.DOUBLE_TYPE:         //-- double
                XSDouble xsDouble = new XSDouble(useWrapper);
                if (!simpleType.isBuiltInType()) {
View Full Code Here

Examples of org.exolab.castor.builder.types.XSDateTime

        } else if (javaType.equals(TypeNames.BYTE_OBJECT)) {
            return new XSByte(true);
        } else if (javaType.equals(TypeNames.BYTE_PRIMITIVE)) {
            return new XSBoolean(false);
        } else if (javaType.equals(TypeNames.CASTOR_DATE)) {
            return new XSDateTime();
        } else if (javaType.equals(TypeNames.CASTOR_DURATION)) {
            return new XSDuration();
        } else if (javaType.equals(TypeNames.CASTOR_GDAY)) {
            return new XSGDay();
        } else if (javaType.equals(TypeNames.CASTOR_GMONTH)) {
View Full Code Here

Examples of org.opensaml.xml.schema.XSDateTime

    /** Constructor. */
    public XSDateTimeUnmarshaller(){}

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        XSDateTime xsDateTime = (XSDateTime) xmlObject;
       
        xsDateTime.setValue(new DateTime(elementContent).withChronology(ISOChronology.getInstanceUTC()));
    }
View Full Code Here

Examples of org.opensaml.xml.schema.XSDateTime

    /** Constructor. */
    public XSDateTimeMarshaller(){}

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        XSDateTime xsDateTime = (XSDateTime) xmlObject;
       
        XMLHelper.appendTextContent(domElement, xsDateTime.getDateTimeFormatter().print(xsDateTime.getValue()));
    }
View Full Code Here

Examples of org.opensaml.xml.schema.XSDateTime

    /** Constructor. */
    public XSDateTimeUnmarshaller(){}

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        XSDateTime xsDateTime = (XSDateTime) xmlObject;
       
        xsDateTime.setValue(new DateTime(elementContent).withChronology(ISOChronology.getInstanceUTC()));
    }
View Full Code Here

Examples of org.opensaml.xml.schema.XSDateTime

    /** Constructor. */
    public XSDateTimeMarshaller(){}

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        XSDateTime xsDateTime = (XSDateTime) xmlObject;
       
        XMLHelper.appendTextContent(domElement, xsDateTime.getDateTimeFormatter().print(xsDateTime.getValue()));
    }
View Full Code Here

Examples of org.xooof.xmlstruct.XSDateTime

    }
    return sqlDate;
  }
 
  protected XSDateTime SQLtoXS(java.sql.Date sqlDate) throws XMLDispatcherAppException{
    XSDateTime xsDate;
    if (sqlDate == null) {
      xsDate = null;
    }
    else {
      try {
        xsDate = new XSDateTime(new java.util.Date(sqlDate.getTime()));
      }
      catch (XmlStructException e) {
        /* This should never happen, but ... */
        throw new XMLDispatcherAppException("Cannot convert sql date '"+sqlDate.toString()+"' to xsDateTime (" + e.getMessage() + ")");
      }
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.