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() ); }
public final Object monitor() { if (has_store()) return get_store().get_locale(); return this; }
protected void set_text(String s) { if (_validateOnSet()) validatePattern(s, _schemaType, _voorVc); super.set_text(s); }
protected void set_text(String s) { byte[] v; if (_validateOnSet()) v = validateLexical(s, schemaType(), _voorVc); else v = lex(s, _voorVc); if (_validateOnSet() && v != null) validateValue(v, schemaType(), XmlObjectBase._voorVc); super.set_ByteArray(v); _value = v; }
protected void set_text(String s) { final byte[] v; if (_validateOnSet()) v = validateLexical(s, schemaType(), _voorVc); else v = lex(s, _voorVc); if (v != null && _validateOnSet()) validateValue(v, schemaType(), XmlObjectBase._voorVc); super.set_ByteArray(v); }
protected void set_text(String s) { BigInteger v = lex(s, _voorVc); if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); if (_validateOnSet()) validateLexical(s, _schemaType, _voorVc); super.set_BigInteger(v); }
protected void set_text(String s) { PrefixResolver resolver = NamespaceContext.getCurrent(); if (resolver == null && has_store()) resolver = get_store(); _value = parse(s, resolver); }
protected void set_ByteArray(byte[] v) { if (_validateOnSet()) validateValue(v, schemaType(), _voorVc); super.set_ByteArray(v); }
protected void set_double(double v) { if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); super.set_double(v); }
protected void set_long(long v) { if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); super.set_long(v); }
protected void set_BigInteger(BigInteger v) { if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); super.set_BigInteger(v); }
protected void set_int(int v) { if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); super.set_int(v); }
protected void set_BigDecimal(BigDecimal v) { if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); super.set_BigDecimal(v); }
protected void set_float(float v) { if (_validateOnSet()) validateValue(v, _schemaType, _voorVc); super.set_float(v); }
public int getIntValue() { long l = getLongValue(); if (l > Integer.MAX_VALUE) throw new XmlValueOutOfRangeException(); if (l < Integer.MIN_VALUE) throw new XmlValueOutOfRangeException(); return (int)l; } private static final BigInteger _max = BigInteger.valueOf(Long.MAX_VALUE);
public static boolean validateLexical(String v, SchemaType sType, ValidationContext context) { boolean b = JavaBooleanHolder.validateLexical(v, context); validatePattern(v, sType, context); return b; }
protected void set_long(long l) { if (l > Integer.MAX_VALUE || l < Integer.MIN_VALUE) throw new XmlValueOutOfRangeException(); set_int((int)l); } protected void set_int(int i)
public short getShortValue() { long l = getIntValue(); if (l > Short.MAX_VALUE) throw new XmlValueOutOfRangeException(); if (l < Short.MIN_VALUE) throw new XmlValueOutOfRangeException(); return (short)l; }
protected int compare_to(XmlObject d) { return compare(_value,((XmlObjectBase)d).doubleValue()); } static int compare(double thisValue, double thatValue)
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() ); }