org.apache.xmlbeans.SimpleValue.instanceType()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(66)

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

SimpleValue.instanceType介绍

[英]The same as getSchemaType unless this is a union instance or nil value.

For unions, this returns the non-union consituent type of this instance. This type may change if setters are called that cause the instance to change to another constituent type of the union.

For nil values, this returns null.
[中]与getSchemaType相同,除非这是联合实例或nil值。
对于联合,这将返回此实例的非联合一致类型。如果调用setter使实例更改为联合的另一个组成类型,则该类型可能会更改。
对于nil值,返回null。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

public SchemaType instanceType()
{
  return ((SimpleValue)underlyingXmlObject()).instanceType();
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

public SchemaType instanceType()
  { check_dated(); return _value == null ? null : ((SimpleValue)_value).instanceType(); }

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

private static boolean permits_inner_space(XmlObject obj)
{
  switch (((SimpleValue)obj).instanceType().getPrimitiveType().getBuiltinTypeCode())
  {
    case SchemaType.BTC_STRING:
    case SchemaType.BTC_ANY_URI:
    case SchemaType.BTC_ANY_SIMPLE:
    case SchemaType.BTC_ANY_TYPE:
      return true;
    default:
      return false;
  }
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

protected boolean equal_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER)
    return i.valueEquals(this);
  return _value.equals(((XmlObjectBase)i).bigIntegerValue());
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

protected int compare_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER)
    return -i.compareTo(this);
  return _value.compareTo(((XmlObjectBase)i).bigIntegerValue());
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

protected boolean equal_to(XmlObject l)
{
  if (((SimpleValue)l).instanceType().getDecimalSize() > SchemaType.SIZE_LONG)
    return l.valueEquals(this);
  return _value == ((XmlObjectBase)l).longValue();
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

protected boolean equal_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_INT)
    return i.valueEquals(this);
  return _value == ((XmlObjectBase)i).intValue();
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

protected int compare_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_INT)
    return -i.compareTo(this);
  return _value == ((XmlObjectBase)i).intValue() ? 0 :
      _value < ((XmlObjectBase)i).intValue() ? -1 : 1;
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

protected int compare_to(XmlObject l)
{
  if (((SimpleValue)l).instanceType().getDecimalSize() > SchemaType.SIZE_LONG)
    return -l.compareTo(this);
  return _value == ((XmlObjectBase)l).longValue() ? 0 :
      _value < ((XmlObjectBase)l).longValue() ? -1 : 1;
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

private final boolean valueEqualsImpl(XmlObject xmlobj)
{
  check_dated();
  SchemaType typethis = instanceType();
  SchemaType typeother = ((SimpleValue)xmlobj).instanceType();
  if (typethis == null && typeother == null) // detects nil
    return true;
  if (typethis == null || typeother == null)
    return false;
  if (!comparable_value_spaces(typethis, typeother))
    return false;
  if (xmlobj.schemaType().getSimpleVariety() == SchemaType.UNION)
    return (underlying(xmlobj)).equal_to(this);
  return equal_to(xmlobj);
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

return obj;
SchemaType instanceType = ((SimpleValue)obj).instanceType();
assert(instanceType != null) : "Nil case should have been handled above";

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

return;
SchemaType iType = ((SimpleValue)value).instanceType();
if (iType == null)

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

type2 = ((SimpleValue)xmlobj).instanceType();

代码示例来源:origin: com.github.pjfanning/xmlbeans

public SchemaType instanceType()
{
  return ((SimpleValue)underlyingXmlObject()).instanceType();
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

protected boolean equal_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_BIG_INTEGER)
    return i.valueEquals(this);
  return _value.equals(((XmlObjectBase)i).bigIntegerValue());
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

protected boolean equal_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_INT)
    return i.valueEquals(this);
  return _value == ((XmlObjectBase)i).intValue();
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

protected boolean equal_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_INT)
    return i.valueEquals(this);
  return _value == ((XmlObjectBase)i).intValue();
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

protected int compare_to(XmlObject i)
{
  if (((SimpleValue)i).instanceType().getDecimalSize() > SchemaType.SIZE_INT)
    return -i.compareTo(this);
  return _value == ((XmlObjectBase)i).intValue() ? 0 :
      _value < ((XmlObjectBase)i).intValue() ? -1 : 1;
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

protected int compare_to(XmlObject l)
{
  if (((SimpleValue)l).instanceType().getDecimalSize() > SchemaType.SIZE_LONG)
    return -l.compareTo(this);
  return _value == ((XmlObjectBase)l).longValue() ? 0 :
      _value < ((XmlObjectBase)l).longValue() ? -1 : 1;
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

SchemaType instanceType = ((SimpleValue)v).instanceType();
assert(instanceType != null) : "Nil case should have been handled already";

相关文章

微信公众号

最新文章

更多

SimpleValue类方法