javax.xml.datatype.XMLGregorianCalendar.getEon()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中javax.xml.datatype.XMLGregorianCalendar.getEon()方法的一些代码示例,展示了XMLGregorianCalendar.getEon()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLGregorianCalendar.getEon()方法的具体详情如下:
包路径:javax.xml.datatype.XMLGregorianCalendar
类名称:XMLGregorianCalendar
方法名:getEon

XMLGregorianCalendar.getEon介绍

[英]Return high order component for XML Schema 1.0 dateTime datatype field for year. null if this optional part of the year field is not defined.

Value constraints for this value are summarized in year field of date/time field mapping table.
[中]返回[$0$]的XML模式1.0日期时间数据类型字段的高阶组件。null如果未定义年的此可选部分字段。
此值的值约束汇总在year field of date/time field mapping table中。

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
public BigInteger getEon()
{
 return xmlGregorianCalendar.getEon();
}

代码示例来源:origin: apache/jena

final int defaultYear = defaults.getYear();
if (defaultYear != DatatypeConstants.FIELD_UNDEFINED) {
  if (defaults.getEon() == null) {
    result.set(Calendar.ERA, defaultYear < 0 ? GregorianCalendar.BC : GregorianCalendar.AD);
    result.set(Calendar.YEAR, Math.abs(defaultYear));

代码示例来源:origin: org.apache.jena/jena-core

final int defaultYear = defaults.getYear();
if (defaultYear != DatatypeConstants.FIELD_UNDEFINED) {
  if (defaults.getEon() == null) {
    result.set(Calendar.ERA, defaultYear < 0 ? GregorianCalendar.BC : GregorianCalendar.AD);
    result.set(Calendar.YEAR, Math.abs(defaultYear));

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
public BigInteger getEon()
{
 return xmlGregorianCalendar.getEon();
}

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

final int defaultYear = defaults.getYear();
if (defaultYear != DatatypeConstants.FIELD_UNDEFINED) {
  if (defaults.getEon() == null) {
    result.set(Calendar.ERA, defaultYear < 0 ? GregorianCalendar.BC : GregorianCalendar.AD);
    result.set(Calendar.YEAR, Math.abs(defaultYear));

代码示例来源:origin: psidev.psi.mi/psi25-xml

public BigInteger getEon() {
  return calendar.getEon();
}

代码示例来源:origin: apache/jena

if (P.getEon() == Q.getEon()) {

代码示例来源:origin: psidev.psi.mi/psi25-xml

public BigInteger getEon() {
  return calendar.getEon();
}

代码示例来源:origin: com.goldmansachs.jdmn/jdmn-core

private static int internalCompare(XMLGregorianCalendar lhs, XMLGregorianCalendar rhs) {
  int result;
  if (lhs.getEon() == rhs.getEon()) {

代码示例来源:origin: com.sun.xml.parsers/jaxp-ri

if (P.getEon() == Q.getEon()) {

代码示例来源:origin: goldmansachs/jdmn

private static int internalCompare(XMLGregorianCalendar lhs, XMLGregorianCalendar rhs) {
  int result;
  if (lhs.getEon() == rhs.getEon()) {

代码示例来源:origin: org.apache.jena/jena-core

if (P.getEon() == Q.getEon()) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxp-ri

if (P.getEon() == Q.getEon()) {

代码示例来源:origin: com.rackspace.apache/xerces2-xsd11

if (P.getEon() == Q.getEon()) {

相关文章