Skip to content

Instantly share code, notes, and snippets.

@liweinan
Created July 10, 2012 11:41
Show Gist options
  • Save liweinan/3082817 to your computer and use it in GitHub Desktop.
Save liweinan/3082817 to your computer and use it in GitHub Desktop.
xsd for Strong's query
package generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"queryParam",
"query"
})
@XmlRootElement(name = "query-element")
public class QueryElement {
@XmlElement(name = "query-param", required = true)
protected String queryParam;
@XmlElement(required = true)
protected QueryElement.Query query;
/**
* Gets the value of the queryParam property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getQueryParam() {
return queryParam;
}
/**
* Sets the value of the queryParam property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setQueryParam(String value) {
this.queryParam = value;
}
/**
* Gets the value of the query property.
*
* @return
* possible object is
* {@link QueryElement.Query }
*
*/
public QueryElement.Query getQuery() {
return query;
}
/**
* Sets the value of the query property.
*
* @param value
* allowed object is
* {@link QueryElement.Query }
*
*/
public void setQuery(QueryElement.Query value) {
this.query = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"param"
})
public static class Query {
@XmlElement(required = true)
protected QueryElement.Query.Param param;
/**
* Gets the value of the param property.
*
* @return
* possible object is
* {@link QueryElement.Query.Param }
*
*/
public QueryElement.Query.Param getParam() {
return param;
}
/**
* Sets the value of the param property.
*
* @param value
* allowed object is
* {@link QueryElement.Query.Param }
*
*/
public void setParam(QueryElement.Query.Param value) {
this.param = value;
}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class Param {
@XmlAttribute
protected String a;
/**
* Gets the value of the a property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getA() {
return a;
}
/**
* Sets the value of the a property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setA(String value) {
this.a = value;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment