Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * An XML document type.
   * Localname: GetDefinitionRequest
   * Namespace: http://52north.org/sor/0.3.1
   * Java type: org.x52North.sor.x031.GetDefinitionRequestDocument
   *
   * Automatically generated - do not modify.
   */
  package org.x52North.sor.x031.impl;
A document containing one GetDefinitionRequest(@http://52north.org/sor/0.3.1) element. This is a complex type.
 
 public class GetDefinitionRequestDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.x52North.sor.x031.GetDefinitionRequestDocument
 {
     private static final long serialVersionUID = 1L;
     
     public GetDefinitionRequestDocumentImpl(org.apache.xmlbeans.SchemaType sType)
     {
         super(sType);
     }
     
     private static final javax.xml.namespace.QName GETDEFINITIONREQUEST$0 = 
         new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""GetDefinitionRequest");
    
    
    
Gets the "GetDefinitionRequest" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest target = null;
             target = (org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest)get_store().find_element_user(GETDEFINITIONREQUEST$0, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
Sets the "GetDefinitionRequest" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest target = null;
             target = (org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest)get_store().find_element_user(GETDEFINITIONREQUEST$0, 0);
             if (target == null)
             {
                 target = (org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest)get_store().add_element_user(GETDEFINITIONREQUEST$0);
             }
             target.set(getDefinitionRequest);
         }
     }
    
    
Appends and returns a new empty "GetDefinitionRequest" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest target = null;
             target = (org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest)get_store().add_element_user(GETDEFINITIONREQUEST$0);
             return target;
         }
     }
    
An XML GetDefinitionRequest(@http://52north.org/sor/0.3.1). This is a complex type.
 
     public static class GetDefinitionRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.x52North.sor.x031.GetDefinitionRequestDocument.GetDefinitionRequest
     {
         private static final long serialVersionUID = 1L;
         
         public GetDefinitionRequestImpl(org.apache.xmlbeans.SchemaType sType)
         {
             super(sType);
         }
         
         private static final javax.xml.namespace.QName INPUTURI$0 = 
             new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""InputURI");
         private static final javax.xml.namespace.QName SERVICE$2 = 
             new javax.xml.namespace.QName("""service");
         private static final javax.xml.namespace.QName VERSION$4 = 
             new javax.xml.namespace.QName("""version");
        
        
        
Gets the "InputURI" element
        public java.lang.String getInputURI()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INPUTURI$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        
Gets (as xml) the "InputURI" element
        public org.apache.xmlbeans.XmlAnyURI xgetInputURI()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(INPUTURI$0, 0);
                return target;
            }
        }
        
        
Sets the "InputURI" element
        public void setInputURI(java.lang.String inputURI)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INPUTURI$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INPUTURI$0);
                }
                target.setStringValue(inputURI);
            }
        }
        
        
Sets (as xml) the "InputURI" element
        public void xsetInputURI(org.apache.xmlbeans.XmlAnyURI inputURI)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(INPUTURI$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(INPUTURI$0);
                }
                target.set(inputURI);
            }
        }
        
        
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$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SERVICE$2);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        
Gets (as xml) the "service" attribute
        public org.apache.xmlbeans.XmlString xgetService()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SERVICE$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(SERVICE$2);
                }
                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$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVICE$2);
                }
                target.setStringValue(service);
            }
        }
        
        
Sets (as xml) the "service" attribute
        public void xsetService(org.apache.xmlbeans.XmlString service)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SERVICE$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SERVICE$2);
                }
                target.set(service);
            }
        }
        
        
Gets the "version" attribute
        public java.lang.String getVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VERSION$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(VERSION$4);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        
Gets (as xml) the "version" attribute
        public org.apache.xmlbeans.XmlString xgetVersion()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VERSION$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(VERSION$4);
                }
                return target;
            }
        }
        
        
Sets the "version" attribute
        public void setVersion(java.lang.String version)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VERSION$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VERSION$4);
                }
                target.setStringValue(version);
            }
        }
        
        
Sets (as xml) the "version" attribute
        public void xsetVersion(org.apache.xmlbeans.XmlString version)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VERSION$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VERSION$4);
                }
                target.set(version);
            }
        }
    }
New to GrepCode? Check out our FAQ X