gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-22 01:41:05 28 4
gpt4 key购买 nike

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

XmlObjectBase.has_store介绍

暂无

代码示例

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

public final Object monitor()
{
  if (has_store())
    return get_store().get_locale();
  return this;
}

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

/**
 * Called by a TypeStore to pull out the most reasonable
 * text value from us. This is done after we have invalidated
 * the store (typically when our value has been set).
 */
public final String build_text(NamespaceManager nsm)
{
  assert((_flags & FLAG_STORE) != 0);
  assert((_flags & FLAG_VALUE_DATED) == 0);
  if ((_flags & (FLAG_NIL | FLAG_ISDEFAULT)) != 0)
    return "";
  return compute_text(
        nsm == null ? has_store() ? get_store() : null : nsm);
}

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

private boolean preCheck()
  {
//        if ( isImmutable() )
//            return true;
    if ( has_store() )
      return get_store().get_locale().noSync();
    return false;
  }

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

public String getStringValue()
{
  if (isImmutable())
  {
    if ((_flags & FLAG_NIL) != 0)
      return null;
    return compute_text(null);
  }
  // Since complex-content types don't have a "natural" string value, we
  // emit the deeply concatenated, tag-removed content of the tag.
  synchronized (monitor())
  {
    if (_isComplexContent())
      return get_store().fetch_text(TypeStore.WS_PRESERVE);
    check_dated();
    if ((_flags & FLAG_NIL) != 0)
      return null;
    return compute_text(has_store() ? get_store() : null);
  }
}

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

private XmlObject ensureStore()
{
  if ((_flags & FLAG_STORE) != 0)
    return this;
  check_dated();
  String value =
    (_flags & FLAG_NIL) != 0
      ? ""
      : compute_text( has_store() ? get_store() : null );
  XmlOptions options = new XmlOptions().setDocumentType(schemaType());
  XmlObject x = XmlObject.Factory.newInstance( options );
  XmlCursor c = x.newCursor();
  c.toNextToken();
  c.insertChars( value );
  return x;
}

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

public final Object monitor()
{
  if (has_store())
    return get_store().get_locale();
  return this;
}

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

public final Object monitor()
{
  if (has_store())
    return get_store().get_locale();
  return this;
}

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

/**
 * Called by a TypeStore to pull out the most reasonable
 * text value from us. This is done after we have invalidated
 * the store (typically when our value has been set).
 */
public final String build_text(NamespaceManager nsm)
{
  assert((_flags & FLAG_STORE) != 0);
  assert((_flags & FLAG_VALUE_DATED) == 0);
  if ((_flags & (FLAG_NIL | FLAG_ISDEFAULT)) != 0)
    return "";
  return compute_text(
        nsm == null ? has_store() ? get_store() : null : nsm);
}

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

/**
 * Called by a TypeStore to pull out the most reasonable
 * text value from us. This is done after we have invalidated
 * the store (typically when our value has been set).
 */
public final String build_text(NamespaceManager nsm)
{
  assert((_flags & FLAG_STORE) != 0);
  assert((_flags & FLAG_VALUE_DATED) == 0);
  if ((_flags & (FLAG_NIL | FLAG_ISDEFAULT)) != 0)
    return "";
  return compute_text(
        nsm == null ? has_store() ? get_store() : null : nsm);
}

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

private boolean preCheck()
  {
//        if ( isImmutable() )
//            return true;
    if ( has_store() )
      return get_store().get_locale().noSync();
    return false;
  }

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

private boolean preCheck()
  {
//        if ( isImmutable() )
//            return true;
    if ( has_store() )
      return get_store().get_locale().noSync();
    return false;
  }

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

public String getStringValue()
{
  if (isImmutable())
  {
    if ((_flags & FLAG_NIL) != 0)
      return null;
    return compute_text(null);
  }
  // Since complex-content types don't have a "natural" string value, we
  // emit the deeply concatenated, tag-removed content of the tag.
  synchronized (monitor())
  {
    if (_isComplexContent())
      return get_store().fetch_text(TypeStore.WS_PRESERVE);
    check_dated();
    if ((_flags & FLAG_NIL) != 0)
      return null;
    return compute_text(has_store() ? get_store() : null);
  }
}

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

public String getStringValue()
{
  if (isImmutable())
  {
    if ((_flags & FLAG_NIL) != 0)
      return null;
    return compute_text(null);
  }
  // Since complex-content types don't have a "natural" string value, we
  // emit the deeply concatenated, tag-removed content of the tag.
  synchronized (monitor())
  {
    if (_isComplexContent())
      return get_store().fetch_text(TypeStore.WS_PRESERVE);
    check_dated();
    if ((_flags & FLAG_NIL) != 0)
      return null;
    return compute_text(has_store() ? get_store() : null);
  }
}

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

private XmlObject ensureStore()
{
  if ((_flags & FLAG_STORE) != 0)
    return this;
  check_dated();
  String value =
    (_flags & FLAG_NIL) != 0
      ? ""
      : compute_text( has_store() ? get_store() : null );
  XmlOptions options = new XmlOptions().setDocumentType(schemaType());
  XmlObject x = XmlObject.Factory.newInstance( options );
  XmlCursor c = x.newCursor();
  c.toNextToken();
  c.insertChars( value );
  return x;
}

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

private XmlObject ensureStore()
{
  if ((_flags & FLAG_STORE) != 0)
    return this;
  check_dated();
  String value =
    (_flags & FLAG_NIL) != 0
      ? ""
      : compute_text( has_store() ? get_store() : null );
  XmlOptions options = new XmlOptions().setDocumentType(schemaType());
  XmlObject x = XmlObject.Factory.newInstance( options );
  XmlCursor c = x.newCursor();
  c.toNextToken();
  c.insertChars( value );
  return x;
}

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