Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » config » [javadoc | source]

    1   package org.apache.xmlbeans.impl.config;
    2   
    3   import javax.xml.namespace.QName;
    4   
    5   import org.apache.xmlbeans.UserType;
    6   import org.apache.xmlbeans.impl.jam.JamClassLoader;
    7   import org.apache.xmlbeans.impl.xb.xmlconfig.Usertypeconfig;
    8   
    9   public class UserTypeImpl implements UserType
   10   {
   11       private QName _name;
   12       private String _javaName;
   13       private String _staticHandler;
   14   
   15   
   16       static UserTypeImpl newInstance(JamClassLoader loader, Usertypeconfig cfgXO)
   17       {
   18           UserTypeImpl result = new UserTypeImpl();
   19   
   20           result._name = cfgXO.getName();
   21           result._javaName = cfgXO.getJavaname();
   22           result._staticHandler = cfgXO.getStaticHandler();
   23   
   24           // We don't validate here because we're just using reflection in
   25           // the implementation. However, in the future we might want to add
   26           // the option of directly using the static handler in generated code
   27   
   28           return result;
   29       }
   30   
   31   
   32       public String getJavaName() 
   33       {
   34           return _javaName;
   35       }
   36   
   37       public QName getName()
   38       {
   39           return _name;
   40       }
   41   
   42       public String getStaticHandler()
   43       {
   44           return _staticHandler;
   45       }
   46   }

Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » config » [javadoc | source]