Hi,

I'm a new axis2 user and I'm working through a very nice tutorial (by ?, found 
?) using Axis2 and Netbeans.  If you know the author, please thank him/her for 
me.

The example uses 4 handwritten classes; Name.java, Address.java, Person.java 
and PersonWS.java and comes with a build.xml file that uses xmlbeans.

I am trying to write a client for this little exercise and in trying to read 
the code to figure out what calls to make, I found this in 
xsd/PersonDocument.java:

 /**
     * Gets the "Person" element
     */
    my.axis2.second.example.data.xsd.Person getPerson();

Forgive my ignorance, but what it this?  The code compiles so javac knows more 
than I do, but it doesn't look like a method because there's no {} and it 
doesn't look like a variable definition with the () on it
and it doesn't look like an assignment without a =.

Does this relate to some new language feature in the 1.6 jdk? 

Thanks


I've attached the entire file below in case anyone wants to read the code in 
context.

/*
 * An XML document type.
 * Localname: Person
 * Namespace: http://data.example.second.axis2.my/xsd
 * Java type: my.axis2.second.example.data.xsd.PersonDocument
 *
 * Automatically generated - do not modify.
 */
package my.axis2.second.example.data.xsd;

/**
 * A document containing one Person(@http://data.example.second.axis2.my/xsd) 
element.
 *
 * This is a complex type.
 */
public interface PersonDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = 
(org.apache.xmlbeans.SchemaType)
        
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(PersonDocument.class.getClassLoader(),
 
"schemaorg_apache_xmlbeans.system.sA02B00D0A751BE3B1BFE541B280E751E").resolveHandle("person0b35doctype");
    
    /**
     * Gets the "Person" element
     */
    my.axis2.second.example.data.xsd.Person getPerson();
    
    /**
     * Sets the "Person" element
     */
    void setPerson(my.axis2.second.example.data.xsd.Person person);
    
    /**
     * Appends and returns a new empty "Person" element
     */
    my.axis2.second.example.data.xsd.Person addNewPerson();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static my.axis2.second.example.data.xsd.PersonDocument 
newInstance() {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options 
); }
        
        /** @param xmlAsString the string value to parse */
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (my.axis2.second.example.data..xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, 
null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) 
throws org.apache.xmlbeans.XmlException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, 
options ); }
        
        /** @param file the file from which to load an xml document */
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.io.File file) throws org.apache.xmlbeans.XmlException, 
java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.io.File file, org..apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options 
); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.net.URL u) throws org.apache..xmlbeans.XmlException, 
java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, 
java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); 
}
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, 
java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans..XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException, java.io.IOException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(javax.xml.stream.XMLStreamReader sr) throws 
org.apache.xmlbeans.XmlException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans..XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions 
options) throws org.apache.xmlbeans.XmlException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); 
}
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws 
org.apache.xmlbeans.XmlException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options 
); }
        
        /** @deprecated [EMAIL PROTECTED] XMLInputStream} */
        public static my.axis2.second.example.data.xsd.PersonDocument 
parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws 
org.apache.xmlbeans.XmlException, 
org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated [EMAIL PROTECTED] XMLInputStream} */
        public static my.axis2.second.example.data.xsd.PersonDocument 
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 (my.axis2.second.example.data.xsd.PersonDocument) 
org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options 
); }
        
        /** @deprecated [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
    }
}


       
____________________________________________________________________________________
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index..php

Reply via email to