Java Code Examples for com.sun.xml.internal.bind.v2.runtime.XMLSerializer#getSchemaType()
The following examples show how to use
com.sun.xml.internal.bind.v2.runtime.XMLSerializer#getSchemaType() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RuntimeBuiltinLeafInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 2
Source File: RuntimeBuiltinLeafInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 3
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 4
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 5
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 6
Source File: RuntimeBuiltinLeafInfoImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 7
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 8
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public String print(XMLGregorianCalendar cal) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); if (type != null) { try { checkXmlGregorianCalendarFieldRef(type, cal); String format = xmlGregorianCalendarFormatString.get(type); if (format != null) { return format(format, cal); } } catch (javax.xml.bind.MarshalException e) { // see issue 649 xs.handleEvent(new ValidationEventImpl(ValidationEvent.WARNING, e.getMessage(), xs.getCurrentLocation(null) )); return ""; } } return cal.toXMLFormat(); }
Example 9
Source File: RuntimeBuiltinLeafInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 10
Source File: RuntimeBuiltinLeafInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 11
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 12
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 13
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 14
Source File: RuntimeBuiltinLeafInfoImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 15
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }
Example 16
Source File: RuntimeBuiltinLeafInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public String print(Date v) { XMLSerializer xs = XMLSerializer.getInstance(); QName type = xs.getSchemaType(); GregorianCalendar cal = new GregorianCalendar(0,0,0); cal.setTime(v); if ((type != null) && (WellKnownNamespace.XML_SCHEMA.equals(type.getNamespaceURI())) && DATE.equals(type.getLocalPart())) { return DatatypeConverterImpl._printDate(cal); } else { return DatatypeConverterImpl._printDateTime(cal); } }