Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

A definition of a pricing rule. 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="PriceRuleType">
   <xs:simpleContent>
     <xs:extension base="xs:string">
       <xs:attribute type="xs:string" use="required" name="Type"/>
       <xs:attribute type="xs:string" use="optional" name="Value"/>
     </xs:extension>
   </xs:simpleContent>
 </xs:complexType>
 
public class PriceRule
    private String string;
    private String type;
    private String value;

    
Get the extension value.

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

    
Set the extension value.

Parameters:
string
    public void setString(String string) {
        this. = string;
    }

    
Get the 'Type' attribute value.

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

    
Set the 'Type' attribute value.

Parameters:
type
    public void setType(String type) {
        this. = type;
    }

    
Get the 'Value' attribute value. Where applicable, a qualifying value for the price rule, e.g. 2 for minimum occupancy or Adult.

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

    
Set the 'Value' attribute value. Where applicable, a qualifying value for the price rule, e.g. 2 for minimum occupancy or Adult.

Parameters:
value
    public void setValue(String value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X