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 ); } }
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 ); } }
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() ); }
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() ); }
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);
/** * 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; }
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(); } } }
/** * 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; }
/** * Sets array of all "Output" element */ public void setOutputArray(net.opengis.wps.x100.OutputDataType[] outputArray) { synchronized (monitor()) { check_orphaned(); arraySetterHelper(outputArray, OUTPUT$0); } }
/** * True if has "ComplexData" element */ public boolean isSetComplexData() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(COMPLEXDATA$0) != 0; } }
/** * Returns number of "CRS" element */ public int sizeOfCRSArray() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(CRS$0); } }
/** * True if has "Abstract" element */ public boolean isSetAbstract() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(ABSTRACT$4) != 0; } }
/** * Unsets the "Abstract" element */ public void unsetAbstract() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(ABSTRACT$4, 0); } }
/** * True if has "OutputDefinitions" element */ public boolean isSetOutputDefinitions() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(OUTPUTDEFINITIONS$6) != 0; } }
/** * True if has "ProcessOutputs" element */ public boolean isSetProcessOutputs() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(PROCESSOUTPUTS$8) != 0; } }
/** * True if has "statusLocation" attribute */ public boolean isSetStatusLocation() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(STATUSLOCATION$12) != null; } }
/** * True if has "Encoding" element */ public boolean isSetEncoding() { synchronized (monitor()) { check_orphaned(); return get_store().count_elements(ENCODING$2) != 0; } }
/** * True if has "encoding" attribute */ public boolean isSetEncoding() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(ENCODING$2) != null; } }
/** * Unsets the "schema" attribute */ public void unsetSchema() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(SCHEMA$4); } } }
/** * Unsets the "ResponseForm" element */ public void unsetResponseForm() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(RESPONSEFORM$4, 0); } } }