Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.jibx.schema.org.opentravel._2012A.rail;
 
 import java.util.List;

A price and rule combination. Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="FareRuleType">
   <xs:complexType>
     <xs:complexContent>
       <xs:extension base="ns:PassengerPriceType">
         <xs:sequence>
           <xs:element ref="ns:PriceRule" maxOccurs="9"/>
           <xs:element ref="ns:TotalFare"/>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>
 </xs:element>
 
public class FareRule extends PassengerPrice
    private List<PriceRulepriceRuleList = new ArrayList<PriceRule>();
    private TotalFare totalFare;

    
Get the list of 'PriceRule' element items.

Returns:
list
    public List<PriceRulegetPriceRuleList() {
        return ;
    }

    
Set the list of 'PriceRule' element items.

Parameters:
list
    public void setPriceRuleList(List<PriceRulelist) {
         = list;
    }

    
Get the number of 'PriceRule' element items.

Returns:
count
    public int sizePriceRuleList() {
        return .size();
    }

    
Add a 'PriceRule' element item.

Parameters:
item
    public void addPriceRule(PriceRule item) {
        .add(item);
    }

    
Get 'PriceRule' element item by position.

Parameters:
index
Returns:
item
    public PriceRule getPriceRule(int index) {
        return .get(index);
    }

    
Remove all 'PriceRule' element items.
    public void clearPriceRuleList() {
        .clear();
    }

    
Get the 'TotalFare' element value.

Returns:
value
    public TotalFare getTotalFare() {
        return ;
    }

    
Set the 'TotalFare' element value.

Parameters:
totalFare
    public void setTotalFare(TotalFare totalFare) {
        this. = totalFare;
    }
New to GrepCode? Check out our FAQ X