Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012A.cruise;

Allows selection of one or more preferred durations, or a range of durations. Schema fragment(s) for this class:
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DurationGroup">
   <xs:attribute type="xs:string" use="optional" name="MinDuration"/>
   <xs:attribute type="xs:string" use="optional" name="MaxDuration"/>
   <xs:attribute type="ns:ListOfDurationsType" use="optional" name="ListOfDurations"/>
 </xs:attributeGroup>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ListOfDurationsType">
   <xs:list itemType="xs:string"/>
 </xs:simpleType>
 
 
 public class DurationGroup
 {
     private String minDuration;
     private String maxDuration;
     private java.util.List<StringlistOfDurations = new java.util.ArrayList<String>();

    
Get the 'MinDuration' attribute value. The shortest duration for the search.

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

    
Set the 'MinDuration' attribute value. The shortest duration for the search.

Parameters:
minDuration
 
     public void setMinDuration(String minDuration) {
         this. = minDuration;
     }

    
Get the 'MaxDuration' attribute value. The longest duration for the search.

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

    
Set the 'MaxDuration' attribute value. The longest duration for the search.

Parameters:
maxDuration
 
     public void setMaxDuration(String maxDuration) {
         this. = maxDuration;
     }

    
Get the list of 'ListOfDurations' attribute items. A list of individual durations to be included in the response.

Returns:
list
 
     public java.util.List<StringgetListOfDurations() {
         return ;
     }

    
Set the list of 'ListOfDurations' attribute items. A list of individual durations to be included in the response.

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

    
Serializer for 'ListOfDurations' attribute list.

Parameters:
values
Returns:
text
 
     public static String serializeListOfDurations(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 'ListOfDurations' attribute list.

Parameters:
text
Returns:
values
Throws:
org.jibx.runtime.JiBXException on conversion error
    public static java.util.List<StringdeserializeListOfDurations(String text)
            throws 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 'ListOfDurations' attribute items.

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

    
Add a 'ListOfDurations' attribute item.

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

    
Get 'ListOfDurations' attribute item by position.

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

    
Remove all 'ListOfDurations' attribute items.
    public void clearListOfDurations() {
        .clear();
    }
New to GrepCode? Check out our FAQ X