if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; if ((entry instanceof XmlObject) && permits_inner_space((XmlObject)list.get(i))) if (contains_white_space(stringrep)) throw new XmlValueOutOfRangeException(); if (_validateOnSet()) validateValue(xList, _schemaType, _voorVc);
public List getListValue() { check_dated(); if (_value == null) return null; if (_jvalue != null) return _jvalue; List javaResult = new ArrayList(); for (int i = 0; i < _value.size(); i++) javaResult.add(java_value((XmlObject)_value.get(i))); _jvalue = new XmlSimpleList(javaResult); return _jvalue; }
protected String compute_text(NamespaceManager nsm) { return compute_list_text(_value); }
protected void set_text(String s) { // first check against any patterns... if (_validateOnSet() && !_schemaType.matchPatternFacet(s)) throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID, new Object[] { "list", s, QNameHelper.readable(_schemaType) }); SchemaType itemType = _schemaType.getListItemType(); XmlSimpleList newval = lex(s, itemType, _voorVc, has_store() ? get_store() : null); // check enumeration if (_validateOnSet()) validateValue(newval, _schemaType, _voorVc); // we made it all the way through; so we're OK. _value = newval; _jvalue = null; }
return new XmlAnySimpleTypeRestriction(sType, complex); case LIST: return new XmlListImpl(sType, complex); case UNION: return new XmlUnionImpl(sType, complex);
public static XmlSimpleList lex(String s, SchemaType itemType, ValidationContext ctx, PrefixResolver resolver) String[] parts = split_list(s);
protected boolean equal_to(XmlObject obj) { return equal_xmlLists(_value, ((XmlObjectBase)obj).xlistValue()); }
public List xgetListValue() { check_dated(); return _value; }
public XmlListImpl(SchemaType type, boolean complex) { _schemaType = type; initComplexType(complex, false); }
protected void set_text(String s) { // first check against any patterns... if (_validateOnSet() && !_schemaType.matchPatternFacet(s)) throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID, new Object[] { "list", s, QNameHelper.readable(_schemaType) }); SchemaType itemType = _schemaType.getListItemType(); XmlSimpleList newval = lex(s, itemType, _voorVc, has_store() ? get_store() : null); // check enumeration if (_validateOnSet()) validateValue(newval, _schemaType, _voorVc); // we made it all the way through; so we're OK. _value = newval; _jvalue = null; }
return new XmlAnySimpleTypeRestriction(sType, complex); case LIST: return new XmlListImpl(sType, complex); case UNION: return new XmlUnionImpl(sType, complex);
new HashSet(Arrays.asList(XmlListImpl.split_list(allowmdef))));
if (equal_xmlLists(items, ((XmlObjectBase)enumvals[i]).xlistValue())) break checkEnum;
public List xgetListValue() { check_dated(); return _value; }
public XmlListImpl(SchemaType type, boolean complex) { _schemaType = type; initComplexType(complex, false); }
if (has_store()) NamespaceContext.push(new NamespaceContext(get_store())); pushed = true; if ((entry instanceof XmlObject) && permits_inner_space((XmlObject)list.get(i))) if (contains_white_space(stringrep)) throw new XmlValueOutOfRangeException(); if (_validateOnSet()) validateValue(xList, _schemaType, _voorVc);
protected void set_text(String s) { // first check against any patterns... if (_validateOnSet() && !_schemaType.matchPatternFacet(s)) throw new XmlValueOutOfRangeException(XmlErrorCodes.DATATYPE_VALID$PATTERN_VALID, new Object[] { "list", s, QNameHelper.readable(_schemaType) }); SchemaType itemType = _schemaType.getListItemType(); XmlSimpleList newval = lex(s, itemType, _voorVc, has_store() ? get_store() : null); // check enumeration if (_validateOnSet()) validateValue(newval, _schemaType, _voorVc); // we made it all the way through; so we're OK. _value = newval; _jvalue = null; }
return new XmlAnySimpleTypeRestriction(sType, complex); case LIST: return new XmlListImpl(sType, complex); case UNION: return new XmlUnionImpl(sType, complex);
String[] items = XmlListImpl.split_list(value);
public List getListValue() { check_dated(); if (_value == null) return null; if (_jvalue != null) return _jvalue; List javaResult = new ArrayList(); for (int i = 0; i < _value.size(); i++) javaResult.add(java_value((XmlObject)_value.get(i))); _jvalue = new XmlSimpleList(javaResult); return _jvalue; }