Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * An XML document type.
   * Localname: GetDefinitionURIsRequest
   * Namespace: http://52north.org/sor/0.3.1
   * Java type: org.x52North.sor.x031.GetDefinitionURIsRequestDocument
   *
   * Automatically generated - do not modify.
   */
  package org.x52North.sor.x031.impl;
A document containing one GetDefinitionURIsRequest(@http://52north.org/sor/0.3.1) element. This is a complex type.
 
 public class GetDefinitionURIsRequestDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.x52North.sor.x031.GetDefinitionURIsRequestDocument
 {
     private static final long serialVersionUID = 1L;
     
     public GetDefinitionURIsRequestDocumentImpl(org.apache.xmlbeans.SchemaType sType)
     {
         super(sType);
     }
     
     private static final javax.xml.namespace.QName GETDEFINITIONURISREQUEST$0 = 
         new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""GetDefinitionURIsRequest");
    
    
    
Gets the "GetDefinitionURIsRequest" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest target = null;
             target = (org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest)get_store().find_element_user(GETDEFINITIONURISREQUEST$0, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
Sets the "GetDefinitionURIsRequest" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest target = null;
             target = (org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest)get_store().find_element_user(GETDEFINITIONURISREQUEST$0, 0);
             if (target == null)
             {
                 target = (org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest)get_store().add_element_user(GETDEFINITIONURISREQUEST$0);
             }
             target.set(getDefinitionURIsRequest);
         }
     }
    
    
Appends and returns a new empty "GetDefinitionURIsRequest" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest target = null;
             target = (org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest)get_store().add_element_user(GETDEFINITIONURISREQUEST$0);
             return target;
         }
     }
    
An XML GetDefinitionURIsRequest(@http://52north.org/sor/0.3.1). This is a complex type.
 
     public static class GetDefinitionURIsRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.x52North.sor.x031.GetDefinitionURIsRequestDocument.GetDefinitionURIsRequest
     {
         private static final long serialVersionUID = 1L;
         
         public GetDefinitionURIsRequestImpl(org.apache.xmlbeans.SchemaType sType)
         {
             super(sType);
         }
         
         private static final javax.xml.namespace.QName MAXNUMBEROFRESULTS$0 = 
             new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""MaxNumberOfResults");
         private static final javax.xml.namespace.QName STARTRESULTELEMENT$2 = 
             new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""StartResultElement");
         private static final javax.xml.namespace.QName SEARCHSTRING$4 = 
             new javax.xml.namespace.QName("http://52north.org/sor/0.3.1""SearchString");
         private static final javax.xml.namespace.QName SERVICE$6 = 
             new javax.xml.namespace.QName("""service");
         private static final javax.xml.namespace.QName VERSION$8 = 
            new javax.xml.namespace.QName("""version");
        
        
        
Gets the "MaxNumberOfResults" element
        public int getMaxNumberOfResults()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXNUMBEROFRESULTS$0, 0);
                if (target == null)
                {
                    return 0;
                }
                return target.getIntValue();
            }
        }
        
        
Gets (as xml) the "MaxNumberOfResults" element
        public org.apache.xmlbeans.XmlInt xgetMaxNumberOfResults()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MAXNUMBEROFRESULTS$0, 0);
                return target;
            }
        }
        
        
True if has "MaxNumberOfResults" element
        public boolean isSetMaxNumberOfResults()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(MAXNUMBEROFRESULTS$0) != 0;
            }
        }
        
        
Sets the "MaxNumberOfResults" element
        public void setMaxNumberOfResults(int maxNumberOfResults)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXNUMBEROFRESULTS$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXNUMBEROFRESULTS$0);
                }
                target.setIntValue(maxNumberOfResults);
            }
        }
        
        
Sets (as xml) the "MaxNumberOfResults" element
        public void xsetMaxNumberOfResults(org.apache.xmlbeans.XmlInt maxNumberOfResults)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(MAXNUMBEROFRESULTS$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(MAXNUMBEROFRESULTS$0);
                }
                target.set(maxNumberOfResults);
            }
        }
        
        
Unsets the "MaxNumberOfResults" element
        public void unsetMaxNumberOfResults()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(MAXNUMBEROFRESULTS$0, 0);
            }
        }
        
        
Gets the "StartResultElement" element
        public int getStartResultElement()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTRESULTELEMENT$2, 0);
                if (target == null)
                {
                    return 0;
                }
                return target.getIntValue();
            }
        }
        
        
Gets (as xml) the "StartResultElement" element
        public org.apache.xmlbeans.XmlInt xgetStartResultElement()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STARTRESULTELEMENT$2, 0);
                return target;
            }
        }
        
        
True if has "StartResultElement" element
        public boolean isSetStartResultElement()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(STARTRESULTELEMENT$2) != 0;
            }
        }
        
        
Sets the "StartResultElement" element
        public void setStartResultElement(int startResultElement)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTRESULTELEMENT$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STARTRESULTELEMENT$2);
                }
                target.setIntValue(startResultElement);
            }
        }
        
        
Sets (as xml) the "StartResultElement" element
        public void xsetStartResultElement(org.apache.xmlbeans.XmlInt startResultElement)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STARTRESULTELEMENT$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(STARTRESULTELEMENT$2);
                }
                target.set(startResultElement);
            }
        }
        
        
Unsets the "StartResultElement" element
        public void unsetStartResultElement()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(STARTRESULTELEMENT$2, 0);
            }
        }
        
        
Gets the "SearchString" element
        public java.lang.String getSearchString()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEARCHSTRING$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        
Gets (as xml) the "SearchString" element
        public org.apache.xmlbeans.XmlString xgetSearchString()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SEARCHSTRING$4, 0);
                return target;
            }
        }
        
        
True if has "SearchString" element
        public boolean isSetSearchString()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(SEARCHSTRING$4) != 0;
            }
        }
        
        
Sets the "SearchString" element
        public void setSearchString(java.lang.String searchString)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEARCHSTRING$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SEARCHSTRING$4);
                }
                target.setStringValue(searchString);
            }
        }
        
        
Sets (as xml) the "SearchString" element
        public void xsetSearchString(org.apache.xmlbeans.XmlString searchString)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SEARCHSTRING$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SEARCHSTRING$4);
                }
                target.set(searchString);
            }
        }
        
        
Unsets the "SearchString" element
        public void unsetSearchString()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(SEARCHSTRING$4, 0);
            }
        }
        
        
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$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SERVICE$6);
                }
                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$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(SERVICE$6);
                }
                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$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SERVICE$6);
                }
                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$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SERVICE$6);
                }
                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$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(VERSION$8);
                }
                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$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(VERSION$8);
                }
                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$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VERSION$8);
                }
                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$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VERSION$8);
                }
                target.set(version);
            }
        }
    }
New to GrepCode? Check out our FAQ X