Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * An XML document type.
   * Localname: GetCapabilities
   * Namespace: http://52north.org/sor/0.3.1
   * Java type: org.x52North.sor.x031.GetCapabilitiesDocument
   *
   * Automatically generated - do not modify.
   */
  package org.x52North.sor.x031.impl;
A document containing one GetCapabilities(@http://52north.org/sor/0.3.1) element. This is a complex type.
 
 public class GetCapabilitiesDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.x52North.sor.x031.GetCapabilitiesDocument
 {
     private static final long serialVersionUID = 1L;
     
     public GetCapabilitiesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
     {
         super(sType);
     }
     
     private static final javax.xml.namespace.QName GETCAPABILITIES$0 = 
         new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""GetCapabilities");
    
    
    
Gets the "GetCapabilities" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities target = null;
             target = (org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities)get_store().find_element_user(GETCAPABILITIES$0, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
Sets the "GetCapabilities" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities target = null;
             target = (org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities)get_store().find_element_user(GETCAPABILITIES$0, 0);
             if (target == null)
             {
                 target = (org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities)get_store().add_element_user(GETCAPABILITIES$0);
             }
             target.set(getCapabilities);
         }
     }
    
    
Appends and returns a new empty "GetCapabilities" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities target = null;
             target = (org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities)get_store().add_element_user(GETCAPABILITIES$0);
             return target;
         }
     }
    
An XML GetCapabilities(@http://52north.org/sor/0.3.1). This is a complex type.
 
     public static class GetCapabilitiesImpl extends net.opengis.ows.x11.impl.GetCapabilitiesTypeImpl implements org.x52North.sor.x031.GetCapabilitiesDocument.GetCapabilities
     {
         private static final long serialVersionUID = 1L;
         
         public GetCapabilitiesImpl(org.apache.xmlbeans.SchemaType sType)
         {
             super(sType);
         }
         
         private static final javax.xml.namespace.QName SERVICE$0 = 
             new javax.xml.namespace.QName("""service");
        
        
        
Gets the "service" attribute
 
         public java.lang.String getService()
         {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVICE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SERVICE$0);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        
Gets (as xml) the "service" attribute
        public net.opengis.ows.x11.ServiceType xgetService()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.ows.x11.ServiceType target = null;
                target = (net.opengis.ows.x11.ServiceType)get_store().find_attribute_user(SERVICE$0);
                if (target == null)
                {
                    target = (net.opengis.ows.x11.ServiceType)get_default_attribute_value(SERVICE$0);
                }
                return target;
            }
        }
        
        
Sets the "service" attribute
        public void setService(java.lang.String service)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SERVICE$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVICE$0);
                }
                target.setStringValue(service);
            }
        }
        
        
Sets (as xml) the "service" attribute
        public void xsetService(net.opengis.ows.x11.ServiceType service)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.ows.x11.ServiceType target = null;
                target = (net.opengis.ows.x11.ServiceType)get_store().find_attribute_user(SERVICE$0);
                if (target == null)
                {
                    target = (net.opengis.ows.x11.ServiceType)get_store().add_attribute_user(SERVICE$0);
                }
                target.set(service);
            }
        }
    }
New to GrepCode? Check out our FAQ X