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, vhudson-jaxb-ri-2.1-2 
  // 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: 2010.09.03 at 10:11:56 AM MESZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 
 import java.util.List;
Defines a list of errors.

Java class for ErrorListType complex type.

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

 <complexType name="ErrorListType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.opengis.net/xls}Error" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="highestSeverity" type="{http://www.opengis.net/xls}SeverityType" default="Warning" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ErrorListType", propOrder = {
     "error"
 })
 public class ErrorListType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Error", required = true)
     protected List<ErrorTypeerror;
     @XmlAttribute(name = "highestSeverity")
     protected SeverityType highestSeverity;

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

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

    getError().add(newItem);
 

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

 
     public List<ErrorTypegetError() {
         if ( == null) {
              = new ArrayList<ErrorType>();
         }
         return this.;
     }

    
Gets the value of the highestSeverity property.

Returns:
possible object is
    public SeverityType getHighestSeverity() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the highestSeverity property.

Parameters:
value allowed object is
    public void setHighestSeverity(SeverityType value) {
        this. = value;
    }
    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) {
        {
            List<ErrorTypetheError;
            theError = this.getError();
            strategy.appendField(locatorthis"error"buffertheError);
        }
        {
            SeverityType theHighestSeverity;
            theHighestSeverity = this.getHighestSeverity();
            strategy.appendField(locatorthis"highestSeverity"buffertheHighestSeverity);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ErrorListType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ErrorListType that = ((ErrorListTypeobject);
        {
            List<ErrorTypelhsError;
            lhsError = this.getError();
            List<ErrorTyperhsError;
            rhsError = that.getError();
            if (!strategy.equals(LocatorUtils.property(thisLocator"error"lhsError), LocatorUtils.property(thatLocator"error"rhsError), lhsErrorrhsError)) {
                return false;
            }
        }
        {
            SeverityType lhsHighestSeverity;
            lhsHighestSeverity = this.getHighestSeverity();
            SeverityType rhsHighestSeverity;
            rhsHighestSeverity = that.getHighestSeverity();
            if (!strategy.equals(LocatorUtils.property(thisLocator"highestSeverity"lhsHighestSeverity), LocatorUtils.property(thatLocator"highestSeverity"rhsHighestSeverity), lhsHighestSeverityrhsHighestSeverity)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            List<ErrorTypetheError;
            theError = this.getError();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"error"theError), currentHashCodetheError);
        }
        {
            SeverityType theHighestSeverity;
            theHighestSeverity = this.getHighestSeverity();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"highestSeverity"theHighestSeverity), currentHashCodetheHighestSeverity);
        }
        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);
        if (draftCopy instanceof ErrorListType) {
            final ErrorListType copy = ((ErrorListTypedraftCopy);
            if ((this.!= null)&&(!this..isEmpty())) {
                List<ErrorTypesourceError;
                sourceError = this.getError();
                @SuppressWarnings("unchecked")
                List<ErrorTypecopyError = ((List<ErrorType> ) strategy.copy(LocatorUtils.property(locator"error"sourceError), sourceError));
                copy.error = null;
                List<ErrorTypeuniqueErrorl = copy.getError();
                uniqueErrorl.addAll(copyError);
            } else {
                copy.error = null;
            }
            if (this.!= null) {
                SeverityType sourceHighestSeverity;
                sourceHighestSeverity = this.getHighestSeverity();
                SeverityType copyHighestSeverity = ((SeverityTypestrategy.copy(LocatorUtils.property(locator"highestSeverity"sourceHighestSeverity), sourceHighestSeverity));
                copy.setHighestSeverity(copyHighestSeverity);
            } else {
                copy.highestSeverity = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ErrorListType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ErrorListType) {
            final ErrorListType target = this;
            final ErrorListType leftObject = ((ErrorListTypeleft);
            final ErrorListType rightObject = ((ErrorListTyperight);
            {
                List<ErrorTypelhsError;
                lhsError = leftObject.getError();
                List<ErrorTyperhsError;
                rhsError = rightObject.getError();
                target.error = null;
                List<ErrorTypeuniqueErrorl = target.getError();
                uniqueErrorl.addAll(((List<ErrorType> ) strategy.merge(LocatorUtils.property(leftLocator"error"lhsError), LocatorUtils.property(rightLocator"error"rhsError), lhsErrorrhsError)));
            }
            {
                SeverityType lhsHighestSeverity;
                lhsHighestSeverity = leftObject.getHighestSeverity();
                SeverityType rhsHighestSeverity;
                rhsHighestSeverity = rightObject.getHighestSeverity();
                target.setHighestSeverity(((SeverityTypestrategy.merge(LocatorUtils.property(leftLocator"highestSeverity"lhsHighestSeverity), LocatorUtils.property(rightLocator"highestSeverity"rhsHighestSeverity), lhsHighestSeverityrhsHighestSeverity)));
            }
        }
    }
    public void setError(List<ErrorTypevalue) {
        List<ErrorTypedraftl = this.getError();
        draftl.addAll(value);
    }
New to GrepCode? Check out our FAQ X