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;
Information describing metadata extensions.

Java class for MD_MetadataExtensionInformation_Type complex type.

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

 <complexType name="MD_MetadataExtensionInformation_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="extensionOnLineResource" type="{http://www.isotc211.org/2005/gmd}CI_OnlineResource_PropertyType" minOccurs="0"/>
         <element name="extendedElementInformation" type="{http://www.isotc211.org/2005/gmd}MD_ExtendedElementInformation_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_MetadataExtensionInformation_Type", propOrder = {
     "extensionOnLineResource",
     "extendedElementInformation"
 })
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
Gets the value of the extensionOnLineResource property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the extensionOnLineResource property.

Parameters:
value allowed object is
 
         this. = value;
     }

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

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

    getExtendedElementInformation().add(newItem);
 

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

        if ( == null) {
        }
        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);
        {
            CIOnlineResourcePropertyType theExtensionOnLineResource;
            theExtensionOnLineResource = this.getExtensionOnLineResource();
            strategy.appendField(locatorthis"extensionOnLineResource"buffertheExtensionOnLineResource);
        }
        {
            List<MDExtendedElementInformationPropertyTypetheExtendedElementInformation;
            theExtendedElementInformation = (((this.!= null)&&(!this..isEmpty()))?this.getExtendedElementInformation():null);
            strategy.appendField(locatorthis"extendedElementInformation"buffertheExtendedElementInformation);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDMetadataExtensionInformationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        {
            CIOnlineResourcePropertyType lhsExtensionOnLineResource;
            lhsExtensionOnLineResource = this.getExtensionOnLineResource();
            CIOnlineResourcePropertyType rhsExtensionOnLineResource;
            rhsExtensionOnLineResource = that.getExtensionOnLineResource();
            if (!strategy.equals(LocatorUtils.property(thisLocator"extensionOnLineResource"lhsExtensionOnLineResource), LocatorUtils.property(thatLocator"extensionOnLineResource"rhsExtensionOnLineResource), lhsExtensionOnLineResourcerhsExtensionOnLineResource)) {
                return false;
            }
        }
        {
            List<MDExtendedElementInformationPropertyTypelhsExtendedElementInformation;
            lhsExtendedElementInformation = (((this.!= null)&&(!this..isEmpty()))?this.getExtendedElementInformation():null);
            List<MDExtendedElementInformationPropertyTyperhsExtendedElementInformation;
            rhsExtendedElementInformation = (((that.extendedElementInformation!= null)&&(!that.extendedElementInformation.isEmpty()))?that.getExtendedElementInformation():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"extendedElementInformation"lhsExtendedElementInformation), LocatorUtils.property(thatLocator"extendedElementInformation"rhsExtendedElementInformation), lhsExtendedElementInformationrhsExtendedElementInformation)) {
                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);
        {
            CIOnlineResourcePropertyType theExtensionOnLineResource;
            theExtensionOnLineResource = this.getExtensionOnLineResource();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"extensionOnLineResource"theExtensionOnLineResource), currentHashCodetheExtensionOnLineResource);
        }
        {
            List<MDExtendedElementInformationPropertyTypetheExtendedElementInformation;
            theExtendedElementInformation = (((this.!= null)&&(!this..isEmpty()))?this.getExtendedElementInformation():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"extendedElementInformation"theExtendedElementInformation), currentHashCodetheExtendedElementInformation);
        }
        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) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof MDMetadataExtensionInformationType) {
            final MDMetadataExtensionInformationType copy = ((MDMetadataExtensionInformationTypedraftCopy);
            if (this.!= null) {
                CIOnlineResourcePropertyType sourceExtensionOnLineResource;
                sourceExtensionOnLineResource = this.getExtensionOnLineResource();
                CIOnlineResourcePropertyType copyExtensionOnLineResource = ((CIOnlineResourcePropertyTypestrategy.copy(LocatorUtils.property(locator"extensionOnLineResource"sourceExtensionOnLineResource), sourceExtensionOnLineResource));
                copy.setExtensionOnLineResource(copyExtensionOnLineResource);
            } else {
                copy.extensionOnLineResource = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<MDExtendedElementInformationPropertyTypesourceExtendedElementInformation;
                sourceExtendedElementInformation = (((this.!= null)&&(!this..isEmpty()))?this.getExtendedElementInformation():null);
                @SuppressWarnings("unchecked")
                List<MDExtendedElementInformationPropertyTypecopyExtendedElementInformation = ((List<MDExtendedElementInformationPropertyType> ) strategy.copy(LocatorUtils.property(locator"extendedElementInformation"sourceExtendedElementInformation), sourceExtendedElementInformation));
                copy.extendedElementInformation = null;
                if (copyExtendedElementInformation!= null) {
                    List<MDExtendedElementInformationPropertyTypeuniqueExtendedElementInformationl = copy.getExtendedElementInformation();
                    uniqueExtendedElementInformationl.addAll(copyExtendedElementInformation);
                }
            } else {
                copy.extendedElementInformation = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDMetadataExtensionInformationType();
    }
    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 MDMetadataExtensionInformationType) {
            final MDMetadataExtensionInformationType target = this;
            final MDMetadataExtensionInformationType leftObject = ((MDMetadataExtensionInformationTypeleft);
            final MDMetadataExtensionInformationType rightObject = ((MDMetadataExtensionInformationTyperight);
            {
                CIOnlineResourcePropertyType lhsExtensionOnLineResource;
                lhsExtensionOnLineResource = leftObject.getExtensionOnLineResource();
                CIOnlineResourcePropertyType rhsExtensionOnLineResource;
                rhsExtensionOnLineResource = rightObject.getExtensionOnLineResource();
                CIOnlineResourcePropertyType mergedExtensionOnLineResource = ((CIOnlineResourcePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"extensionOnLineResource"lhsExtensionOnLineResource), LocatorUtils.property(rightLocator"extensionOnLineResource"rhsExtensionOnLineResource), lhsExtensionOnLineResourcerhsExtensionOnLineResource));
                target.setExtensionOnLineResource(mergedExtensionOnLineResource);
            }
            {
                List<MDExtendedElementInformationPropertyTypelhsExtendedElementInformation;
                lhsExtendedElementInformation = (((leftObject.extendedElementInformation!= null)&&(!leftObject.extendedElementInformation.isEmpty()))?leftObject.getExtendedElementInformation():null);
                List<MDExtendedElementInformationPropertyTyperhsExtendedElementInformation;
                rhsExtendedElementInformation = (((rightObject.extendedElementInformation!= null)&&(!rightObject.extendedElementInformation.isEmpty()))?rightObject.getExtendedElementInformation():null);
                List<MDExtendedElementInformationPropertyTypemergedExtendedElementInformation = ((List<MDExtendedElementInformationPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"extendedElementInformation"lhsExtendedElementInformation), LocatorUtils.property(rightLocator"extendedElementInformation"rhsExtendedElementInformation), lhsExtendedElementInformationrhsExtendedElementInformation));
                target.extendedElementInformation = null;
                if (mergedExtendedElementInformation!= null) {
                    List<MDExtendedElementInformationPropertyTypeuniqueExtendedElementInformationl = target.getExtendedElementInformation();
                    uniqueExtendedElementInformationl.addAll(mergedExtendedElementInformation);
                }
            }
        }
    }
        this. = null;
        draftl.addAll(value);
    }
        setExtensionOnLineResource(value);
        return this;
    }
        if (values!= null) {
            for (MDExtendedElementInformationPropertyType valuevalues) {
                getExtendedElementInformation().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getExtendedElementInformation().addAll(values);
        }
        return this;
    }
        setExtendedElementInformation(value);
        return this;
    }
    @Override
        setId(value);
        return this;
    }
    @Override
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X