Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.07.13 at 02:50:13 PM CEST 
  //
  
  
  package org.datacleaner.configuration.jaxb;
 
 import java.util.List;

Java class for mongodbDatastoreType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="mongodbDatastoreType">
   <complexContent>
     <extension base="{http://eobjects.org/analyzerbeans/configuration/1.0}abstractDatastoreType">
       <sequence>
         <element name="hostname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="port" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
         <element name="database-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="username" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="table-def" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="collection" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="property" maxOccurs="unbounded">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                             <element name="type" type="{http://www.w3.org/2001/XMLSchema}normalizedString" minOccurs="0"/>
                           </sequence>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "mongodbDatastoreType", propOrder = {
     "hostname",
     "port",
     "databaseName",
     "username",
     "password",
     "tableDef"
 })
 public class MongodbDatastoreType
     extends AbstractDatastoreType
 {
 
     protected String hostname;
     protected Integer port;
     @XmlElement(name = "database-name", required = true)
     protected String databaseName;
     protected String username;
     protected String password;
     @XmlElement(name = "table-def")
     protected List<MongodbDatastoreType.TableDeftableDef;

    
Gets the value of the hostname property.

Returns:
possible object is
 
     public String getHostname() {
         return ;
    }

    
Sets the value of the hostname property.

Parameters:
value allowed object is
    public void setHostname(String value) {
        this. = value;
    }

    
Gets the value of the port property.

Returns:
possible object is
    public Integer getPort() {
        return ;
    }

    
Sets the value of the port property.

Parameters:
value allowed object is
    public void setPort(Integer value) {
        this. = value;
    }

    
Gets the value of the databaseName property.

Returns:
possible object is
    public String getDatabaseName() {
        return ;
    }

    
Sets the value of the databaseName property.

Parameters:
value allowed object is
    public void setDatabaseName(String value) {
        this. = value;
    }

    
Gets the value of the username property.

Returns:
possible object is
    public String getUsername() {
        return ;
    }

    
Sets the value of the username property.

Parameters:
value allowed object is
    public void setUsername(String value) {
        this. = value;
    }

    
Gets the value of the password property.

Returns:
possible object is
    public String getPassword() {
        return ;
    }

    
Sets the value of the password property.

Parameters:
value allowed object is
    public void setPassword(String value) {
        this. = value;
    }

    
Gets the value of the tableDef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the tableDef property.

For example, to add a new item, do as follows:

    getTableDef().add(newItem);
 

Objects of the following type(s) are allowed in the list

        if ( == null) {
             = new ArrayList<MongodbDatastoreType.TableDef>();
        }
        return this.;
    }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="collection" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="property" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="type" type="{http://www.w3.org/2001/XMLSchema}normalizedString" minOccurs="0"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "collection",
        "property"
    })
    public static class TableDef {
        @XmlElement(required = true)
        protected String collection;
        @XmlElement(required = true)
        protected List<MongodbDatastoreType.TableDef.Propertyproperty;

        
Gets the value of the collection property.

Returns:
possible object is
        public String getCollection() {
            return ;
        }

        
Sets the value of the collection property.

Parameters:
value allowed object is
        public void setCollection(String value) {
            this. = value;
        }

        
Gets the value of the property property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the property property.

For example, to add a new item, do as follows:

    getProperty().add(newItem);
 

Objects of the following type(s) are allowed in the list

            if ( == null) {
                 = new ArrayList<MongodbDatastoreType.TableDef.Property>();
            }
            return this.;
        }


        

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="type" type="{http://www.w3.org/2001/XMLSchema}normalizedString" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
        @XmlType(name = "", propOrder = {
            "name",
            "type"
        })
        public static class Property {
            @XmlElement(required = true)
            protected String name;
            @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
            @XmlSchemaType(name = "normalizedString")
            protected String type;

            
Gets the value of the name property.

Returns:
possible object is
            public String getName() {
                return ;
            }

            
Sets the value of the name property.

Parameters:
value allowed object is
            public void setName(String value) {
                this. = value;
            }

            
Gets the value of the type property.

Returns:
possible object is
            public String getType() {
                return ;
            }

            
Sets the value of the type property.

Parameters:
value allowed object is
            public void setType(String value) {
                this. = value;
            }
        }
    }
New to GrepCode? Check out our FAQ X