Package spring.soap

Class Country

java.lang.Object
spring.soap.Country

public class Country extends Object

Java class for country complex type.

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

 <complexType name="country">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="population" type="{http://www.w3.org/2001/XMLSchema}int"/>
         <element name="capital" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="currency" type="{http://www.baeldung.com/springsoap/gen}currency"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • name

      protected String name
    • population

      protected int population
    • capital

      protected String capital
    • currency

      protected Currency currency
  • Constructor Details

    • Country

      public Country()
  • Method Details

    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String
    • getPopulation

      public int getPopulation()
      Gets the value of the population property.
    • setPopulation

      public void setPopulation(int value)
      Sets the value of the population property.
    • getCapital

      public String getCapital()
      Gets the value of the capital property.
      Returns:
      possible object is String
    • setCapital

      public void setCapital(String value)
      Sets the value of the capital property.
      Parameters:
      value - allowed object is String
    • getCurrency

      public Currency getCurrency()
      Gets the value of the currency property.
      Returns:
      possible object is Currency
    • setCurrency

      public void setCurrency(Currency value)
      Sets the value of the currency property.
      Parameters:
      value - allowed object is Currency