Attaching the files

--- On Thu, 15/10/09, sri ram <[email protected]> wrote:

From: sri ram <[email protected]>
Subject: Regarding XMLBeans generation Of files
To: [email protected]
Date: Thursday, 15 October, 2009, 2:50 PM

Hi all,

As we know that XMLbeans generates a lot of file reading the schema.
I have tried my best to modify the schema to best known format to reduce the 
number of files.
And I have been succesfull in doing that .

What I see is that  there are a lot of unused methods that are getting 
generated in  files that  are generated .Unused in my code of implementation.
For example there are a lot of overloaded parse methods that are generated 
,which are
 public and static  and hence need to be loaded in the memory even if they are 
used or not.
So my concern is can we suppress the generation of these methods
by using some options in the command line (while compiling the schema).
Else can we change the source code of the XMLBeans generator to get the 
required methods. If yes what are jars that   we can
 modify without violating any of the rules of open source code .

I have attached two files to show the  number of methods that are actually in 
use.
And  what we want to achieve.

The number of files that are generated are 4029  .
The number of line we want to reduce is 50 line in each file .
ie approx 50 * 4000= 200,000

Our schema is ever increasing  with every version.
It will allow my application to work better and faster.

Can someone quickly respond to it.

Thanks in advance 


-Sriram


       Now, send attachments up to 25MB with Yahoo! India Mail. Learn how.


      Connect more, do more and share more with Yahoo! India Mail. Learn more. 
http://in.overview.mail.yahoo.com/
/*
 * XML Type:  AddPersonGroupMatrixReq
 * Namespace: http://www.kiran.com/AXL/API/8.0
 * Java type: com.kiran.www.AddPersonGroupMatrixReq
 *
 * Automatically generated - do not modify.
 */
package com.kiran.www;


/**
 * An XML AddPersonGroupMatrixReq(@http://www.kiran.com).
 *
 * This is a complex type.
 */
public interface AddPersonGroupMatrixReq extends com.kiran.www.APIRequest
{
    public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
        
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AddPersonGroupMatrixReq.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.sC9186F50FFFED779ED0597E80002DA3D").resolveHandle("addPersongroupmatrixreq1467type");
    
    /**
     * Gets the "PersonGroupMatrix" element
     */
    com.kiran.www.XPersonGroupMatrix getPersonGroupMatrix();
    
    /**
     * Sets the "PersonGroupMatrix" element
     */
    void setPersonGroupMatrix(com.kiran.www.XPersonGroupMatrix 
PersonGroupMatrix);
    
    /**
     * Appends and returns a new empty "PersonGroupMatrix" element
     */
    com.kiran.www.XPersonGroupMatrix addNewPersonGroupMatrix();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.kiran.www.AddPersonGroupMatrixReq newInstance() {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options 
); }
        
        /** @param xmlAsString the string value to parse */
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, 
null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) 
throws org.apache.xmlbeans.XmlException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, 
options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.kiran.www.AddPersonGroupMatrixReq parse(java.io.File 
file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq parse(java.io.File 
file, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options 
); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq parse(java.net.URL 
u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq parse(java.net.URL 
u, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, 
java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); 
}
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, 
java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(javax.xml.stream.XMLStreamReader sr) throws 
org.apache.xmlbeans.XmlException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions 
options) throws org.apache.xmlbeans.XmlException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); 
}
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options 
); }
        
        /** @deprecated {...@link 
org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws 
org.apache.xmlbeans.XmlException, 
org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {...@link 
org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.kiran.www.AddPersonGroupMatrixReq 
parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, 
org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, 
org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options 
); }
        
        /** @deprecated {...@link 
org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream 
newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) 
throws org.apache.xmlbeans.XmlException, 
org.apache.xmlbeans.xml.stream.XMLStreamException {
          return 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream(
 xis, type, null ); }
        
        /** @deprecated {...@link 
org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream 
newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, 
org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, 
org.apache.xmlbeans.xml.stream.XMLStreamException {
          return 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream(
 xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
/*
 * XML Type:  AddPersonGroupMatrixReq
 * Namespace: http://www.kiran.com/AXL/API/8.0
 * Java type: com.kiran.www.AddPersonGroupMatrixReq
 *
 * Automatically generated - do not modify.
 */
package com.kiran.www;


/**
 * An XML AddPersonGroupMatrixReq(@http://www.kiran.com).
 *
 * This is a complex type.
 */
public interface AddPersonGroupMatrixReq extends com.kiran.www.APIRequest
{
    public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
        
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AddPersonGroupMatrixReq.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.sC9186F50FFFED779ED0597E80002DA3D").resolveHandle("addPersongroupmatrixreq1467type");
    
    /**
     * Gets the "PersonGroupMatrix" element
     */
    com.kiran.www.XPersonGroupMatrix getPersonGroupMatrix();
    
    /**
     * Sets the "PersonGroupMatrix" element
     */
    void setPersonGroupMatrix(com.kiran.www.XPersonGroupMatrix 
PersonGroupMatrix);
    
    /**
     * Appends and returns a new empty "PersonGroupMatrix" element
     */
    com.kiran.www.XPersonGroupMatrix addNewPersonGroupMatrix();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.kiran.www.AddPersonGroupMatrixReq newInstance() {
          return (com.kiran.www.AddPersonGroupMatrixReq) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        
        
        private Factory() { } // No instance of this class allowed
    }
}

Reply via email to