Class AcceptVersionsType


  • public class AcceptVersionsType
    extends Object
    Prioritized sequence of one or more specification versions accepted by client, with preferred versions listed first. See Version negotiation subclause for more information.

    Java class for AcceptVersionsType complex type.

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

     <complexType name="AcceptVersionsType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="Version" type="{http://www.opengis.net/ows}VersionType" maxOccurs="unbounded"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • AcceptVersionsType

        public AcceptVersionsType()
        Default no-arg constructor
      • AcceptVersionsType

        public AcceptVersionsType​(List<String> version)
        Fully-initialising value constructor
    • Method Detail

      • getVersion

        public List<String> getVersion()
        Gets the value of the version 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 version property.

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

            getVersion().add(newItem);
         

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