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 identifing the portrayal catalogue used

Java class for MD_PortrayalCatalogueReference_Type complex type.

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

 <complexType name="MD_PortrayalCatalogueReference_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="portrayalCatalogueCitation" type="{http://www.isotc211.org/2005/gmd}CI_Citation_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_PortrayalCatalogueReference_Type", propOrder = {
     "portrayalCatalogueCitation"
 })
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
Gets the value of the portrayalCatalogueCitation 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 portrayalCatalogueCitation property.

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

    getPortrayalCatalogueCitation().add(newItem);
 

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

 
         if ( == null) {
              = new ArrayList<CICitationPropertyType>();
         }
         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);
        {
            List<CICitationPropertyTypethePortrayalCatalogueCitation;
            thePortrayalCatalogueCitation = (((this.!= null)&&(!this..isEmpty()))?this.getPortrayalCatalogueCitation():null);
            strategy.appendField(locatorthis"portrayalCatalogueCitation"bufferthePortrayalCatalogueCitation);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDPortrayalCatalogueReferenceType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDPortrayalCatalogueReferenceType that = ((MDPortrayalCatalogueReferenceTypeobject);
        {
            List<CICitationPropertyTypelhsPortrayalCatalogueCitation;
            lhsPortrayalCatalogueCitation = (((this.!= null)&&(!this..isEmpty()))?this.getPortrayalCatalogueCitation():null);
            List<CICitationPropertyTyperhsPortrayalCatalogueCitation;
            rhsPortrayalCatalogueCitation = (((that.portrayalCatalogueCitation!= null)&&(!that.portrayalCatalogueCitation.isEmpty()))?that.getPortrayalCatalogueCitation():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"portrayalCatalogueCitation"lhsPortrayalCatalogueCitation), LocatorUtils.property(thatLocator"portrayalCatalogueCitation"rhsPortrayalCatalogueCitation), lhsPortrayalCatalogueCitationrhsPortrayalCatalogueCitation)) {
                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);
        {
            List<CICitationPropertyTypethePortrayalCatalogueCitation;
            thePortrayalCatalogueCitation = (((this.!= null)&&(!this..isEmpty()))?this.getPortrayalCatalogueCitation():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"portrayalCatalogueCitation"thePortrayalCatalogueCitation), currentHashCodethePortrayalCatalogueCitation);
        }
        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 MDPortrayalCatalogueReferenceType) {
            final MDPortrayalCatalogueReferenceType copy = ((MDPortrayalCatalogueReferenceTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CICitationPropertyTypesourcePortrayalCatalogueCitation;
                sourcePortrayalCatalogueCitation = (((this.!= null)&&(!this..isEmpty()))?this.getPortrayalCatalogueCitation():null);
                @SuppressWarnings("unchecked")
                List<CICitationPropertyTypecopyPortrayalCatalogueCitation = ((List<CICitationPropertyType> ) strategy.copy(LocatorUtils.property(locator"portrayalCatalogueCitation"sourcePortrayalCatalogueCitation), sourcePortrayalCatalogueCitation));
                copy.portrayalCatalogueCitation = null;
                if (copyPortrayalCatalogueCitation!= null) {
                    List<CICitationPropertyTypeuniquePortrayalCatalogueCitationl = copy.getPortrayalCatalogueCitation();
                    uniquePortrayalCatalogueCitationl.addAll(copyPortrayalCatalogueCitation);
                }
            } else {
                copy.portrayalCatalogueCitation = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDPortrayalCatalogueReferenceType();
    }
    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 MDPortrayalCatalogueReferenceType) {
            final MDPortrayalCatalogueReferenceType target = this;
            final MDPortrayalCatalogueReferenceType leftObject = ((MDPortrayalCatalogueReferenceTypeleft);
            final MDPortrayalCatalogueReferenceType rightObject = ((MDPortrayalCatalogueReferenceTyperight);
            {
                List<CICitationPropertyTypelhsPortrayalCatalogueCitation;
                lhsPortrayalCatalogueCitation = (((leftObject.portrayalCatalogueCitation!= null)&&(!leftObject.portrayalCatalogueCitation.isEmpty()))?leftObject.getPortrayalCatalogueCitation():null);
                List<CICitationPropertyTyperhsPortrayalCatalogueCitation;
                rhsPortrayalCatalogueCitation = (((rightObject.portrayalCatalogueCitation!= null)&&(!rightObject.portrayalCatalogueCitation.isEmpty()))?rightObject.getPortrayalCatalogueCitation():null);
                List<CICitationPropertyTypemergedPortrayalCatalogueCitation = ((List<CICitationPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"portrayalCatalogueCitation"lhsPortrayalCatalogueCitation), LocatorUtils.property(rightLocator"portrayalCatalogueCitation"rhsPortrayalCatalogueCitation), lhsPortrayalCatalogueCitationrhsPortrayalCatalogueCitation));
                target.portrayalCatalogueCitation = null;
                if (mergedPortrayalCatalogueCitation!= null) {
                    List<CICitationPropertyTypeuniquePortrayalCatalogueCitationl = target.getPortrayalCatalogueCitation();
                    uniquePortrayalCatalogueCitationl.addAll(mergedPortrayalCatalogueCitation);
                }
            }
        }
    }
        this. = null;
        List<CICitationPropertyTypedraftl = this.getPortrayalCatalogueCitation();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (CICitationPropertyType valuevalues) {
                getPortrayalCatalogueCitation().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getPortrayalCatalogueCitation().addAll(values);
        }
        return this;
    }
        setPortrayalCatalogueCitation(value);
        return this;
    }
    @Override
        setId(value);
        return this;
    }
    @Override
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X