Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.04.16 at 07:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.gmd.v_20060504;
 
 import java.util.List;
Description of the spatial and temporal reference systems used in the dataset

Java class for AbstractRS_ReferenceSystem_Type complex type.

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

 <complexType name="AbstractRS_ReferenceSystem_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="name" type="{http://www.isotc211.org/2005/gmd}RS_Identifier_PropertyType"/>
         <element name="domainOfValidity" type="{http://www.isotc211.org/2005/gmd}EX_Extent_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "AbstractRS_ReferenceSystem_Type", propOrder = {
     "name",
     "domainOfValidity"
 })
 public abstract class AbstractRSReferenceSystemType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected RSIdentifierPropertyType name;
     protected List<EXExtentPropertyTypedomainOfValidity;

    
Gets the value of the name property.

Returns:
possible object is
 
     public RSIdentifierPropertyType getName() {
         return ;
     }

    
Sets the value of the name property.

Parameters:
value allowed object is
 
     public void setName(RSIdentifierPropertyType value) {
         this. = value;
     }

    
Gets the value of the domainOfValidity 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 domainOfValidity property.

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

    getDomainOfValidity().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<EXExtentPropertyType>();
        }
        return this.;
    }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        super.appendFields(locatorbufferstrategy);
        {
            RSIdentifierPropertyType theName;
            theName = this.getName();
            strategy.appendField(locatorthis"name"buffertheName);
        }
        {
            List<EXExtentPropertyTypetheDomainOfValidity;
            theDomainOfValidity = (((this.!= null)&&(!this..isEmpty()))?this.getDomainOfValidity():null);
            strategy.appendField(locatorthis"domainOfValidity"buffertheDomainOfValidity);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof AbstractRSReferenceSystemType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final AbstractRSReferenceSystemType that = ((AbstractRSReferenceSystemTypeobject);
        {
            RSIdentifierPropertyType lhsName;
            lhsName = this.getName();
            RSIdentifierPropertyType rhsName;
            rhsName = that.getName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                return false;
            }
        }
        {
            List<EXExtentPropertyTypelhsDomainOfValidity;
            lhsDomainOfValidity = (((this.!= null)&&(!this..isEmpty()))?this.getDomainOfValidity():null);
            List<EXExtentPropertyTyperhsDomainOfValidity;
            rhsDomainOfValidity = (((that.domainOfValidity!= null)&&(!that.domainOfValidity.isEmpty()))?that.getDomainOfValidity():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"domainOfValidity"lhsDomainOfValidity), LocatorUtils.property(thatLocator"domainOfValidity"rhsDomainOfValidity), lhsDomainOfValidityrhsDomainOfValidity)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            RSIdentifierPropertyType theName;
            theName = this.getName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
        }
        {
            List<EXExtentPropertyTypetheDomainOfValidity;
            theDomainOfValidity = (((this.!= null)&&(!this..isEmpty()))?this.getDomainOfValidity():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"domainOfValidity"theDomainOfValidity), currentHashCodetheDomainOfValidity);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        if (null == target) {
            throw new IllegalArgumentException("Target argument must not be null for abstract copyable classes.");
        }
        super.copyTo(locatortargetstrategy);
        if (target instanceof AbstractRSReferenceSystemType) {
            final AbstractRSReferenceSystemType copy = ((AbstractRSReferenceSystemTypetarget);
            if (this.!= null) {
                RSIdentifierPropertyType sourceName;
                sourceName = this.getName();
                RSIdentifierPropertyType copyName = ((RSIdentifierPropertyTypestrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                copy.setName(copyName);
            } else {
                copy.name = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<EXExtentPropertyTypesourceDomainOfValidity;
                sourceDomainOfValidity = (((this.!= null)&&(!this..isEmpty()))?this.getDomainOfValidity():null);
                @SuppressWarnings("unchecked")
                List<EXExtentPropertyTypecopyDomainOfValidity = ((List<EXExtentPropertyType> ) strategy.copy(LocatorUtils.property(locator"domainOfValidity"sourceDomainOfValidity), sourceDomainOfValidity));
                copy.domainOfValidity = null;
                if (copyDomainOfValidity!= null) {
                    List<EXExtentPropertyTypeuniqueDomainOfValidityl = copy.getDomainOfValidity();
                    uniqueDomainOfValidityl.addAll(copyDomainOfValidity);
                }
            } else {
                copy.domainOfValidity = null;
            }
        }
        return target;
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof AbstractRSReferenceSystemType) {
            final AbstractRSReferenceSystemType target = this;
            final AbstractRSReferenceSystemType leftObject = ((AbstractRSReferenceSystemTypeleft);
            final AbstractRSReferenceSystemType rightObject = ((AbstractRSReferenceSystemTyperight);
            {
                RSIdentifierPropertyType lhsName;
                lhsName = leftObject.getName();
                RSIdentifierPropertyType rhsName;
                rhsName = rightObject.getName();
                RSIdentifierPropertyType mergedName = ((RSIdentifierPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName));
                target.setName(mergedName);
            }
            {
                List<EXExtentPropertyTypelhsDomainOfValidity;
                lhsDomainOfValidity = (((leftObject.domainOfValidity!= null)&&(!leftObject.domainOfValidity.isEmpty()))?leftObject.getDomainOfValidity():null);
                List<EXExtentPropertyTyperhsDomainOfValidity;
                rhsDomainOfValidity = (((rightObject.domainOfValidity!= null)&&(!rightObject.domainOfValidity.isEmpty()))?rightObject.getDomainOfValidity():null);
                List<EXExtentPropertyTypemergedDomainOfValidity = ((List<EXExtentPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"domainOfValidity"lhsDomainOfValidity), LocatorUtils.property(rightLocator"domainOfValidity"rhsDomainOfValidity), lhsDomainOfValidityrhsDomainOfValidity));
                target.domainOfValidity = null;
                if (mergedDomainOfValidity!= null) {
                    List<EXExtentPropertyTypeuniqueDomainOfValidityl = target.getDomainOfValidity();
                    uniqueDomainOfValidityl.addAll(mergedDomainOfValidity);
                }
            }
        }
    }
    public void setDomainOfValidity(List<EXExtentPropertyTypevalue) {
        this. = null;
        List<EXExtentPropertyTypedraftl = this.getDomainOfValidity();
        draftl.addAll(value);
    }
        setName(value);
        return this;
    }
        if (values!= null) {
            for (EXExtentPropertyType valuevalues) {
                getDomainOfValidity().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getDomainOfValidity().addAll(values);
        }
        return this;
    }
        setDomainOfValidity(value);
        return this;
    }
    @Override
    public AbstractRSReferenceSystemType withId(String value) {
        setId(value);
        return this;
    }
    @Override
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X