Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.soitoolkit.refapps.dealernetwork.commontypes.schema.v1;
  
  import java.util.List;
Represents a monetary amount in a specific currency.

Java class for MoneyType complex type.

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

 <complexType name="MoneyType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="currency" type="{urn:org.soitoolkit.refapps.dealernetwork.commontypes.schema:v1}CurrencyType"/>
         <element name="amount" type="{urn:org.soitoolkit.refapps.dealernetwork.commontypes.schema:v1}Money_amountType"/>
         <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MoneyType", propOrder = {
     "currency",
     "amount",
     "any"
 })
 public class MoneyType {
 
     @XmlElement(required = true)
     protected String currency;
     @XmlElement(required = true)
     protected BigDecimal amount;
     @XmlAnyElement(lax = true)
     protected List<Objectany;

    
Gets the value of the currency property.

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

    
Sets the value of the currency property.

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

    
Gets the value of the amount property.

Returns:
possible object is
 
     public BigDecimal getAmount() {
         return ;
     }

    
Sets the value of the amount property.

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

    
Gets the value of the any 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 any property.

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

    getAny().add(newItem);
 

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

    public List<ObjectgetAny() {
        if ( == null) {
             = new ArrayList<Object>();
        }
        return this.;
    }
New to GrepCode? Check out our FAQ X