public SchemaType instanceType() { check_dated(); return _value == null ? null : ((SimpleValue)_value).instanceType(); }
public XmlUnionImpl(SchemaType type, boolean complex) { _schemaType = type; initComplexType(complex, false); }
protected void set_ByteArray(byte[] b) { set_primitive(JAVA_BYTEARRAY, b); } protected void set_hex(byte[] b)
protected void set_text(String s) if (!_schemaType.matchPatternFacet(s) && _validateOnSet()) throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID, new Object[] { "string", s, QNameHelper.readable(_schemaType) }); if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; for (boolean validate = true; validate || !_validateOnSet(); validate = false) if (!check(newval, _schemaType)) continue;
if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; for (boolean validate = true; validate || !_validateOnSet(); validate = false) if (logical_overlap(members[i], typecode))
return new XmlListImpl(sType, complex); case UNION: return new XmlUnionImpl(sType, complex); default: throw new IllegalStateException();
protected void validate_simpleval(String lexical, ValidationContext ctx) { try { check_dated(); } catch (Exception e) { ctx.invalid(XmlErrorCodes.UNION, new Object[] { "'" + lexical + "' does not match any of the member types for " + QNameHelper.readable(schemaType()) }); return; } if (_value == null) { ctx.invalid(XmlErrorCodes.UNION, new Object[] { "'" + lexical + "' does not match any of the member types for " + QNameHelper.readable(schemaType()) }); return; } ((XmlObjectBase)_value).validate_simpleval(lexical, ctx); }
protected void set_text(String s) if (!_schemaType.matchPatternFacet(s) && _validateOnSet()) throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID, new Object[] { "string", s, QNameHelper.readable(_schemaType) }); if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; for (boolean validate = true; validate || !_validateOnSet(); validate = false) if (!check(newval, _schemaType)) continue;
if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; for (boolean validate = true; validate || !_validateOnSet(); validate = false) if (logical_overlap(members[i], typecode))
return new XmlListImpl(sType, complex); case UNION: return new XmlUnionImpl(sType, complex); default: throw new IllegalStateException();
protected void validate_simpleval(String lexical, ValidationContext ctx) { try { check_dated(); } catch (Exception e) { ctx.invalid(XmlErrorCodes.UNION, new Object[] { "'" + lexical + "' does not match any of the member types for " + QNameHelper.readable(schemaType()) }); return; } if (_value == null) { ctx.invalid(XmlErrorCodes.UNION, new Object[] { "'" + lexical + "' does not match any of the member types for " + QNameHelper.readable(schemaType()) }); return; } ((XmlObjectBase)_value).validate_simpleval(lexical, ctx); }
protected void set_text(String s) if (!_schemaType.matchPatternFacet(s) && _validateOnSet()) throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID, new Object[] { "string", s, QNameHelper.readable(_schemaType) }); if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; for (boolean validate = true; validate || !_validateOnSet(); validate = false) if (!check(newval, _schemaType)) continue;
if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; for (boolean validate = true; validate || !_validateOnSet(); validate = false) if (logical_overlap(members[i], typecode))
protected void set_xmlduration(XmlObject v) { set_primitive(SchemaType.BTC_DURATION, v); } protected void set_xmldatetime(XmlObject v)
public BigInteger getBigIntegerValue() { check_dated(); return _value == null ? null : ((SimpleValue)_value).getBigIntegerValue(); }
return new XmlListImpl(sType, complex); case UNION: return new XmlUnionImpl(sType, complex); default: throw new IllegalStateException();
protected void validate_simpleval(String lexical, ValidationContext ctx) { try { check_dated(); } catch (Exception e) { ctx.invalid(XmlErrorCodes.UNION, new Object[] { "'" + lexical + "' does not match any of the member types for " + QNameHelper.readable(schemaType()) }); return; } if (_value == null) { ctx.invalid(XmlErrorCodes.UNION, new Object[] { "'" + lexical + "' does not match any of the member types for " + QNameHelper.readable(schemaType()) }); return; } ((XmlObjectBase)_value).validate_simpleval(lexical, ctx); }
public XmlUnionImpl(SchemaType type, boolean complex) { _schemaType = type; initComplexType(complex, false); }
protected void set_Calendar(Calendar c) { set_primitive(JAVA_CALENDAR, c); } protected void set_Date(Date d)
public GDate getGDateValue() { check_dated(); return _value == null ? null : ((SimpleValue)_value).getGDateValue(); }