本文整理了Java中javax.xml.datatype.XMLGregorianCalendar.toString()
方法的一些代码示例,展示了XMLGregorianCalendar.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGregorianCalendar.toString()
方法的具体详情如下:
包路径:javax.xml.datatype.XMLGregorianCalendar
类名称:XMLGregorianCalendar
方法名:toString
[英]Returns a String
representation of this XMLGregorianCalendar``Object
.
The result is a lexical representation generated by #toXMLFormat().
[中]返回此XMLGregorianCalendar``Object
的String
表示形式。
结果是由#toXMLFormat()生成的词汇表示。
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertDate(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertDateTime(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertTime(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertGYearMonth(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertDate(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertGDay(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertGMonth(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertGMonthDay(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertGYear(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertGYearMonth(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertTime(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
public String convertDateTime(XMLGregorianCalendar instanceValue)
{
return instanceValue == null ? null : instanceValue.toString();
}
代码示例来源:origin: stackoverflow.com
GregorianCalendar calendar = new GregorianCalendar();
calendar.setTime(v);
DatatypeFactory df = DatatypeFactory.newInstance();
XMLGregorianCalendar dateTime = df.newXMLGregorianCalendar(calendar);
return dateTime.toString();
代码示例来源:origin: com.ebmwebsourcing.wsstar/wsn-b-datatypes-jaxbimpl
@Override
public final void setInitialTerminationTime(Date value) {
this.jaxbTypeObj.setInitialTerminationTime(
new JAXBElement<String>(WsnbConstants.INIT_TERMINATION_TIME_QNAME,
String.class,
WsrfbfUtils.toXMLGregorianCalendar(value, SubscribeImpl.logger).toString()));
}
代码示例来源:origin: Samuel-Oliveira/Java_NFe
public static String dataNfe() throws NfeException {
try {
LocalDateTime dataASerFormatada = LocalDateTime.now();
GregorianCalendar calendar = GregorianCalendar.from(dataASerFormatada.atZone(ZoneId.of("Brazil/East")));
XMLGregorianCalendar xmlCalendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(calendar);
xmlCalendar.setMillisecond(DatatypeConstants.FIELD_UNDEFINED);
return (xmlCalendar.toString());
} catch (DatatypeConfigurationException e) {
throw new NfeException(e.getMessage());
}
}
代码示例来源:origin: org.metatype.sxc/sxc-jaxb-core
public void write(XoXMLStreamWriter writer, XMLGregorianCalendar value, RuntimeContext context) throws Exception {
if (value == null) {
writer.writeXsiNil();
} else {
writer.writeCharacters(value.toString());
}
}
}
代码示例来源:origin: org.bedework/bw-util2-calendar
@Override
public ValueComparator convert(final UtcDatetimePropertyType val) {
ValueComparator vc = new ValueComparator();
vc.addValue(XcalTags.utcDateTimeVal,
XcalUtil.getIcalFormatDateTime(
val.getUtcDateTime().toString()));
return vc;
}
代码示例来源:origin: org.bedework/bw-util2-calendar
@Override
public ValueComparator convert(final DatetimePropertyType val) {
ValueComparator vc = new ValueComparator();
vc.addValue(XcalTags.dateTimeVal,
XcalUtil.getIcalFormatDateTime(
val.getDateTime().toString()));
return vc;
}
代码示例来源:origin: blazegraph/database
@Override
public BigdataLiteralImpl createLiteral(final XMLGregorianCalendar arg0) {
/*
* Note: QName#toString() does not produce the right representation,
* which is why we need to go through XMLDatatypeUtil.
*
* @see https://sourceforge.net/apps/trac/bigdata/ticket/117
*/
return new BigdataLiteralImpl(this, arg0.toString(),
null/* languageCode */, createURI(XMLDatatypeUtil.qnameToURI(
arg0.getXMLSchemaType()).stringValue()));
}
代码示例来源:origin: com.blazegraph/bigdata-core
@Override
public BigdataLiteralImpl createLiteral(final XMLGregorianCalendar arg0) {
/*
* Note: QName#toString() does not produce the right representation,
* which is why we need to go through XMLDatatypeUtil.
*
* @see https://sourceforge.net/apps/trac/bigdata/ticket/117
*/
return new BigdataLiteralImpl(this, arg0.toString(),
null/* languageCode */, createURI(XMLDatatypeUtil.qnameToURI(
arg0.getXMLSchemaType()).stringValue()));
}
内容来源于网络,如有侵权,请联系作者删除!