Class QueryType


  • public class QueryType
    extends AbstractQueryType
    Specifies a query to execute against instances of one or more object types. A set of ElementName elements may be included to specify an adhoc view of the csw:Record instances in the result set. Otherwise, use ElementSetName to specify a predefined view. The Constraint element contains a query filter expressed in a supported query language. A sorting criterion that specifies a property to sort by may be included. typeNames - a list of object types to query.

    Java class for QueryType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="QueryType">
       <complexContent>
         <extension base="{http://www.opengis.net/cat/csw/2.0.2}AbstractQueryType">
           <sequence>
             <choice>
               <element ref="{http://www.opengis.net/cat/csw/2.0.2}ElementSetName"/>
               <element name="ElementName" type="{http://www.w3.org/2001/XMLSchema}QName" maxOccurs="unbounded"/>
             </choice>
             <element ref="{http://www.opengis.net/cat/csw/2.0.2}Constraint" minOccurs="0"/>
             <element ref="{http://www.opengis.net/ogc}SortBy" minOccurs="0"/>
           </sequence>
           <attribute name="typeNames" use="required" type="{http://www.opengis.net/cat/csw/2.0.2}TypeNameListType" />
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • QueryType

        public QueryType()
        Default no-arg constructor
    • Method Detail

      • getElementSetName

        public ElementSetName getElementSetName()
        Gets the value of the elementSetName property.
        Returns:
        possible object is ElementSetName
      • setElementSetName

        public void setElementSetName​(ElementSetName value)
        Sets the value of the elementSetName property.
        Parameters:
        value - allowed object is ElementSetName
      • getElementName

        public List<QName> getElementName()
        Gets the value of the elementName property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the elementName property.

        For example, to add a new item, do as follows:

            getElementName().add(newItem);
         

        Objects of the following type(s) are allowed in the list QName

      • getConstraint

        public Constraint getConstraint()
        Gets the value of the constraint property.
        Returns:
        possible object is Constraint
      • setConstraint

        public void setConstraint​(Constraint value)
        Sets the value of the constraint property.
        Parameters:
        value - allowed object is Constraint
      • getSortBy

        public SortBy getSortBy()
        Gets the value of the sortBy property.
        Returns:
        possible object is SortBy
      • setSortBy

        public void setSortBy​(SortBy value)
        Sets the value of the sortBy property.
        Parameters:
        value - allowed object is SortBy
      • getTypeNames

        public List<QName> getTypeNames()
        Gets the value of the typeNames property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the typeNames property.

        For example, to add a new item, do as follows:

            getTypeNames().add(newItem);
         

        Objects of the following type(s) are allowed in the list QName