xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Xmlbeans Wiki] Update of "UserTypes" by rinku
Date Thu, 17 Feb 2011 07:04:34 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlbeans Wiki" for change notification.

The "UserTypes" page has been changed by rinku.
http://wiki.apache.org/xmlbeans/UserTypes?action=diff&rev1=7&rev2=8

--------------------------------------------------

      throws XmlValueNotSupportedException, XmlValueOutOfRangeException;
  }}}
  
- As XMLBeans is designed around a "start-from-Schema" use case, the encode and decode methods
must be written such that they are able to handle any value that is valid against the schema.
Because validation is an optional operation when loading XML there may be cases when a decoder
would be called with invalid input. In such cases either {{{org.apache.xmlbeans.impl.values.XmlValueNotSupportedException}}}
or {{{XmlValueOutOfRangeException}}} should be
+ As XMLBeans is designed around a "start-from-Schema" use case, the encode and decode methods
must be written such that they are able to handle any value that is valid against the schema.
Because validation is an optional operation when loading XML there may be cases when a decoder
would be called with invalid input. In such cases either {{{org.apache.xmlbeans.impl.values.XmlValueNotSupportedException}}}
or {{{XmlValueOutOfRangeException}}} should be [http://www.paycor.com hcm]
  thrown from the decode method. Such exceptions should not be thrown in cases where the XML
input has been successfully validated against the schema (this is just another way of stressing
that the decoder must accept all valid input according to the XML Schema). The encoder should
never throw such an exception.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message