gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-21 20:49:05 26 4
gpt4 key购买 nike

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

XmlObjectBase.instanceType介绍

暂无

代码示例

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

public boolean isInstanceOf(SchemaType type)
{
  SchemaType myType;
  if (type.getSimpleVariety() != SchemaType.UNION)
  {
    for (myType = instanceType(); myType != null; myType = myType.getBaseType())
      if (type == myType)
        return true;
    return false;
  }
  else
  {
    Set ctypes = new HashSet(Arrays.asList(type.getUnionConstituentTypes()));
    for (myType = instanceType(); myType != null; myType = myType.getBaseType())
      if (ctypes.contains(myType))
        return true;
    return false;
  }
}

代码示例来源: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

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

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

public boolean isInstanceOf(SchemaType type)
{
  SchemaType myType;
  if (type.getSimpleVariety() != SchemaType.UNION)
  {
    for (myType = instanceType(); myType != null; myType = myType.getBaseType())
      if (type == myType)
        return true;
    return false;
  }
  else
  {
    Set ctypes = new HashSet(Arrays.asList(type.getUnionConstituentTypes()));
    for (myType = instanceType(); myType != null; myType = myType.getBaseType())
      if (ctypes.contains(myType))
        return true;
    return false;
  }
}

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

public boolean isInstanceOf(SchemaType type)
{
  SchemaType myType;
  if (type.getSimpleVariety() != SchemaType.UNION)
  {
    for (myType = instanceType(); myType != null; myType = myType.getBaseType())
      if (type == myType)
        return true;
    return false;
  }
  else
  {
    Set ctypes = new HashSet(Arrays.asList(type.getUnionConstituentTypes()));
    for (myType = instanceType(); myType != null; myType = myType.getBaseType())
      if (ctypes.contains(myType))
        return true;
    return false;
  }
}

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.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: com.github.pjfanning/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/com.springsource.org.apache.xmlbeans

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

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

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com