gpt4 book ai didi

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

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

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

XmlObjectBase.check_orphaned介绍

[英]Called before every getter and setter on the strongly typed classes to ensure that the object has not been orphaned.
[中]在强类型类上的每个getter和setter之前调用,以确保对象没有孤立。

代码示例

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

public XmlObject substitute(QName name, SchemaType type)
{
  if (name == null)
    throw new IllegalArgumentException( "Invalid name (null)" );
  if (type == null)
    throw new IllegalArgumentException( "Invalid type (null)" );
  if ((_flags & FLAG_STORE) == 0)
  {
    throw
      new IllegalStateException(
        "XML Value Objects cannot be used with substitution" );
  }
  synchronized (monitor())
  {
    check_orphaned();
    return (XmlObject) get_store().substitute( name, type );
  }
}

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

public XmlObject changeType(SchemaType type)
{
  if (type == null)
    throw new IllegalArgumentException( "Invalid type (null)" );
  if ((_flags & FLAG_STORE) == 0)
  {
    throw
      new IllegalStateException(
        "XML Value Objects cannot have thier type changed" );
  }
  synchronized (monitor())
  {
    check_orphaned();
    return (XmlObject) get_store().change_type( type );
  }
}

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

private TypeStoreUser setterHelper ( XmlObjectBase src )
{
  check_orphaned();
  src.check_orphaned();
  return
    get_store().copy_contents_from( src.get_store() ).
      get_store().change_type( src.schemaType() );
}

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

private TypeStoreUser objSetterHelper(XmlObjectBase srcObj, QName propName, int index, short kindSetterHelper)
{
  XmlObjectBase target = getTargetForSetter(propName, index, kindSetterHelper);
  target.check_orphaned();
  srcObj.check_orphaned();
  return target.get_store().copy_contents_from( srcObj.get_store() ).
      get_store().change_type( srcObj.schemaType() );
}

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

check_orphaned();
XmlObjectBase target = null;
target = (XmlObjectBase)get_store().find_element_user(propName, index);
check_orphaned();
XmlObjectBase target = null;
target = (XmlObjectBase)get_store().find_element_user(propName, index);

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

/**
 * Same as copy() but unsynchronized.
 * If Locale.COPY_USE_NEW_LOCALE is set in the options, a new locale will be created for the copy.
 * Warning: Using this method in mutithreaded environment can cause invalid states.
 */
public final XmlObject _copy(XmlOptions xmlOptions)
{
  // immutable objects don't get copied. They're immutable
  if (isImmutable())
    return this;
  check_orphaned();
  SchemaTypeLoader stl = get_store().get_schematypeloader();
  XmlObject result = (XmlObject)get_store().copy(stl, schemaType(), xmlOptions);
  return result;
}

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

public XmlCursor newCursor()
{
  if ((_flags & FLAG_STORE) == 0)
    throw new IllegalStateException("XML Value Objects cannot create cursors");
  check_orphaned();
  // Note that new_cursor does not really need sync ....
  XmlLocale l = getXmlLocale();
  if (l.noSync())         { l.enter(); try { return get_store().new_cursor(); } finally { l.exit(); } }
  else synchronized ( l ) { l.enter(); try { return get_store().new_cursor(); } finally { l.exit(); } }
}

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

/**
 * Same as set() but unsynchronized.
 * Warning: Using this method in mutithreaded environment can cause invalid states.
 */
public final XmlObject _set(XmlObject src)
{
  if (isImmutable())
    throw new IllegalStateException("Cannot set the value of an immutable XmlObject");
  XmlObjectBase obj = underlying(src);
  TypeStoreUser newObj = this;
  if (obj == null)
  {
    setNil();
    return this;
  }
  if (obj.isImmutable())
    set(obj.stringValue());
  else
  {
    check_orphaned();
    obj.check_orphaned();
    newObj = get_store().copy_contents_from( obj.get_store() ).
      get_store().change_type( obj.schemaType() );
  }
  return (XmlObject) newObj;
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * Sets array of all "Output" element
 */
public void setOutputArray(net.opengis.wps.x100.OutputDataType[] outputArray)
{
  synchronized (monitor())
  {
    check_orphaned();
    arraySetterHelper(outputArray, OUTPUT$0);
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "ComplexData" element
 */
public boolean isSetComplexData()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().count_elements(COMPLEXDATA$0) != 0;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * Returns number of "CRS" element
 */
public int sizeOfCRSArray()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().count_elements(CRS$0);
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "Abstract" element
 */
public boolean isSetAbstract()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().count_elements(ABSTRACT$4) != 0;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * Unsets the "Abstract" element
 */
public void unsetAbstract()
{
  synchronized (monitor())
  {
    check_orphaned();
    get_store().remove_element(ABSTRACT$4, 0);
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "OutputDefinitions" element
 */
public boolean isSetOutputDefinitions()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().count_elements(OUTPUTDEFINITIONS$6) != 0;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "ProcessOutputs" element
 */
public boolean isSetProcessOutputs()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().count_elements(PROCESSOUTPUTS$8) != 0;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "statusLocation" attribute
 */
public boolean isSetStatusLocation()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().find_attribute_user(STATUSLOCATION$12) != null;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "Encoding" element
 */
public boolean isSetEncoding()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().count_elements(ENCODING$2) != 0;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
 * True if has "encoding" attribute
 */
public boolean isSetEncoding()
{
  synchronized (monitor())
  {
    check_orphaned();
    return get_store().find_attribute_user(ENCODING$2) != null;
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
   * Unsets the "schema" attribute
   */
  public void unsetSchema()
  {
    synchronized (monitor())
    {
      check_orphaned();
      get_store().remove_attribute(SCHEMA$4);
    }
  }
}

代码示例来源:origin: org.n52.wps/52n-xml-wps-v100

/**
   * Unsets the "ResponseForm" element
   */
  public void unsetResponseForm()
  {
    synchronized (monitor())
    {
      check_orphaned();
      get_store().remove_element(RESPONSEFORM$4, 0);
    }
  }
}

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