Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;
  
Specifies fare option info. Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="FareCodeOptionType">
   <xs:sequence>
     <xs:element type="ns:FreeTextType" name="FareRemark" minOccurs="0"/>
   </xs:sequence>
   <xs:attribute type="ns:ListOfOTA_CodeType" use="optional" name="ListOfFareQualifierCode"/>
   <xs:attribute type="xs:string" use="optional" name="Status"/>
   <xs:attribute type="xs:string" use="optional" name="FareDescription"/>
   <xs:attributeGroup ref="ns:FareGroup"/>
 </xs:complexType>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfOTA_CodeType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
 public class FareCodeOption
 {
     private FreeText fareRemark;
     private String status;
     private String fareDescription;
     private FareGroup fareGroup;

    
Get the 'FareRemark' element value. Contains a remark pertaining to the fare.

Returns:
value
 
     public FreeText getFareRemark() {
         return ;
     }

    
Set the 'FareRemark' element value. Contains a remark pertaining to the fare.

Parameters:
fareRemark
 
     public void setFareRemark(FreeText fareRemark) {
         this. = fareRemark;
     }

    
Get the list of 'ListOfFareQualifierCode' attribute items. Specify the type of fare. For example it could specify that the fare applies to a past passenger. Refer to OpenTravel Code table Fare Qualifier (FQC).

Returns:
list
 
         return ;
     }

    
Set the list of 'ListOfFareQualifierCode' attribute items. Specify the type of fare. For example it could specify that the fare applies to a past passenger. Refer to OpenTravel Code table Fare Qualifier (FQC).

Parameters:
list
 
     public void setListOfFareQualifierCodes(java.util.List<Stringlist) {
          = list;
     }

    
Serializer for 'ListOfFareQualifierCode' attribute list.

Parameters:
values
Returns:
text
 
     public static String serializeListOfFareQualifierCodes(
             java.util.List<Stringvalues) {
         if (values == null) {
             return null;
         } else {
             java.lang.StringBuffer buff = new java.lang.StringBuffer();
             for (java.util.Iterator<Stringiter = values.iterator(); iter
                     .hasNext();) {
                 if (buff.length() > 0) {
                     buff.append(' ');
                 }
                 String value = iter.next();
                 buff.append(value);
             }
             return buff.toString();
         }
     }

    
Deserializer for 'ListOfFareQualifierCode' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
            String textthrows org.jibx.runtime.JiBXException {
            public java.lang.Object deserialize(String text) {
                return text;
            }
        };
        return (java.util.List<String>) org.jibx.runtime.Utility
                .deserializeList(textldser);
    }

    
Get the number of 'ListOfFareQualifierCode' attribute items.

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

    
Add a 'ListOfFareQualifierCode' attribute item.

Parameters:
item
    public void addListOfFareQualifierCode(String item) {
        .add(item);
    }

    
Get 'ListOfFareQualifierCode' attribute item by position.

Parameters:
index
Returns:
item
    public String getListOfFareQualifierCode(int index) {
        return .get(index);
    }

    
Remove all 'ListOfFareQualifierCode' attribute items.
    public void clearListOfFareQualifierCodes() {
    }

    
Get the 'Status' attribute value. Indicates the status of the fare. Refer to OpenTravel Code table Status (STS).

Returns:
value
    public String getStatus() {
        return ;
    }

    
Set the 'Status' attribute value. Indicates the status of the fare. Refer to OpenTravel Code table Status (STS).

Parameters:
status
    public void setStatus(String status) {
        this. = status;
    }

    
Get the 'FareDescription' attribute value. Contains a description of the fare.

Returns:
value
    public String getFareDescription() {
        return ;
    }

    
Set the 'FareDescription' attribute value. Contains a description of the fare.

Parameters:
fareDescription
    public void setFareDescription(String fareDescription) {
        this. = fareDescription;
    }

    
Get the 'FareGroup' attributeGroup value.

Returns:
value
    public FareGroup getFareGroup() {
        return ;
    }

    
Set the 'FareGroup' attributeGroup value.

Parameters:
fareGroup
    public void setFareGroup(FareGroup fareGroup) {
        this. = fareGroup;
    }
New to GrepCode? Check out our FAQ X