You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by Apache Wiki <wi...@apache.org> on 2011/06/16 14:32:40 UTC

[Xmlbeans Wiki] Update of "UserTypes" by Bruce C

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 Bruce C:
http://wiki.apache.org/xmlbeans/UserTypes?action=diff&rev1=14&rev2=15

  
  When the {{{example:uuid}}} simple type is used as an element of a complex type, the static handler would then be invoked by a convenience method returning a {{{java.util.UUID}}}. The static handler does not throw exceptions. Any provided static handler must be able to parse any information provided to it in the {{{SimpleValue}}} class. Thus, the schema itself should limit possible inputs to those that can be validly interpreted by the static handler.
  
- The {{{xget}}} and {{{xset}}} methods will remain available to set properties using the normally generated type extending {{{XmlObject}}}.
+ The {{{xget}}} and {{{xset}}} methods will remain available to set properties using the normally [[http://www.flavorconnect.com/|dating sites]] generated type extending {{{XmlObject}}}.
  
  
  == Generated Code ==
  
- In the initial implementation, the generated code would use the Java reflect API to find and invoke the static handler. This option allows users to build the schema separately from the code that contains the static handler. However, because the use of reflection incurs a performance penalty an option to generate code that calls the static handler directly would likely be necessary for many library users.
+ In the initial implementation, the generated code would use the Java reflect API to find and invoke the static handler. This option allows users to build the schema separately from the code that contains the static handler [[http://www.flavorconnect.com/|dating sites]]. However, because the use of reflection incurs a performance penalty an option to generate code that calls the static handler directly would likely be necessary for many library users.
  
  == Static Handler Methods ==
  
- The expected method signature on the static handler indicated for a specific type must be public, static, and have a method name of "encode"/"decode" plus the unqualified name of the user type. The unqualified name is required to allow multiple user types to be handled by the same static handler class [[http://nofaxpayday-loans.com/|no fax payday loan]].
+ The expected method signature on the static handler indicated for a specific type must be public, static, and have a method name of "encode"/"decode" plus the unqualified name of the user type. The unqualified name is required to allow multiple user types to be handled by the same static handler class.
  
  Assuming the user type is named {{{common:uuid}}} and maps to the Java type {{{java.util.UUID}}} the method signatures must be:
  

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