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.03.28 at 10:20:34 AM CET 
  //
  
  
  package net.opengis.iso19139.gmx.v_20060504;
 
 import java.util.List;

Java class for ML_ImageDatum_Type complex type.

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

 <complexType name="ML_ImageDatum_Type">
   <complexContent>
     <extension base="{http://www.opengis.net/gml}ImageDatumType">
       <sequence>
         <element name="alternativeExpression" type="{http://www.isotc211.org/2005/gmx}DatumAlt_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ML_ImageDatum_Type", propOrder = {
     "alternativeExpression"
 })
 public class MLImageDatumType
     extends ImageDatumType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected List<DatumAltPropertyTypealternativeExpression;

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

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

    getAlternativeExpression().add(newItem);
 

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

 
         if ( == null) {
              = new ArrayList<DatumAltPropertyType>();
         }
         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<DatumAltPropertyTypetheAlternativeExpression;
            theAlternativeExpression = (((this.!= null)&&(!this..isEmpty()))?this.getAlternativeExpression():null);
            strategy.appendField(locatorthis"alternativeExpression"buffertheAlternativeExpression);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MLImageDatumType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MLImageDatumType that = ((MLImageDatumTypeobject);
        {
            List<DatumAltPropertyTypelhsAlternativeExpression;
            lhsAlternativeExpression = (((this.!= null)&&(!this..isEmpty()))?this.getAlternativeExpression():null);
            List<DatumAltPropertyTyperhsAlternativeExpression;
            rhsAlternativeExpression = (((that.alternativeExpression!= null)&&(!that.alternativeExpression.isEmpty()))?that.getAlternativeExpression():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"alternativeExpression"lhsAlternativeExpression), LocatorUtils.property(thatLocator"alternativeExpression"rhsAlternativeExpression), lhsAlternativeExpressionrhsAlternativeExpression)) {
                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<DatumAltPropertyTypetheAlternativeExpression;
            theAlternativeExpression = (((this.!= null)&&(!this..isEmpty()))?this.getAlternativeExpression():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"alternativeExpression"theAlternativeExpression), currentHashCodetheAlternativeExpression);
        }
        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 MLImageDatumType) {
            final MLImageDatumType copy = ((MLImageDatumTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<DatumAltPropertyTypesourceAlternativeExpression;
                sourceAlternativeExpression = (((this.!= null)&&(!this..isEmpty()))?this.getAlternativeExpression():null);
                @SuppressWarnings("unchecked")
                List<DatumAltPropertyTypecopyAlternativeExpression = ((List<DatumAltPropertyType> ) strategy.copy(LocatorUtils.property(locator"alternativeExpression"sourceAlternativeExpression), sourceAlternativeExpression));
                copy.alternativeExpression = null;
                if (copyAlternativeExpression!= null) {
                    List<DatumAltPropertyTypeuniqueAlternativeExpressionl = copy.getAlternativeExpression();
                    uniqueAlternativeExpressionl.addAll(copyAlternativeExpression);
                }
            } else {
                copy.alternativeExpression = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MLImageDatumType();
    }
    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 MLImageDatumType) {
            final MLImageDatumType target = this;
            final MLImageDatumType leftObject = ((MLImageDatumTypeleft);
            final MLImageDatumType rightObject = ((MLImageDatumTyperight);
            {
                List<DatumAltPropertyTypelhsAlternativeExpression;
                lhsAlternativeExpression = (((leftObject.alternativeExpression!= null)&&(!leftObject.alternativeExpression.isEmpty()))?leftObject.getAlternativeExpression():null);
                List<DatumAltPropertyTyperhsAlternativeExpression;
                rhsAlternativeExpression = (((rightObject.alternativeExpression!= null)&&(!rightObject.alternativeExpression.isEmpty()))?rightObject.getAlternativeExpression():null);
                List<DatumAltPropertyTypemergedAlternativeExpression = ((List<DatumAltPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"alternativeExpression"lhsAlternativeExpression), LocatorUtils.property(rightLocator"alternativeExpression"rhsAlternativeExpression), lhsAlternativeExpressionrhsAlternativeExpression));
                target.alternativeExpression = null;
                if (mergedAlternativeExpression!= null) {
                    List<DatumAltPropertyTypeuniqueAlternativeExpressionl = target.getAlternativeExpression();
                    uniqueAlternativeExpressionl.addAll(mergedAlternativeExpression);
                }
            }
        }
    }
    public void setAlternativeExpression(List<DatumAltPropertyTypevalue) {
        this. = null;
        List<DatumAltPropertyTypedraftl = this.getAlternativeExpression();
        draftl.addAll(value);
    }
        if (values!= null) {
            for (DatumAltPropertyType valuevalues) {
                getAlternativeExpression().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getAlternativeExpression().addAll(values);
        }
        return this;
    }
        setAlternativeExpression(value);
        return this;
    }
New to GrepCode? Check out our FAQ X