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;
 
Defines the characteristics of a processing error.

Java class for ErrorType complex type.

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

 <complexType name="ErrorType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="errorCode" use="required" type="{http://www.opengis.net/xls}ErrorCodeType" />
       <attribute name="severity" type="{http://www.opengis.net/xls}SeverityType" default="Warning" />
       <attribute name="locationID" type="{http://www.w3.org/2001/XMLSchema}IDREF" />
       <attribute name="locationPath" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "ErrorType")
 public class ErrorType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "errorCode", required = true)
     protected ErrorCodeType errorCode;
     @XmlAttribute(name = "severity")
     protected SeverityType severity;
     @XmlAttribute(name = "locationID")
     @XmlIDREF
     @XmlSchemaType(name = "IDREF")
     protected Object locationID;
     @XmlAttribute(name = "locationPath")
     protected String locationPath;
     @XmlAttribute(name = "message")
     protected String message;

    
Gets the value of the errorCode property.

Returns:
possible object is
 
     public ErrorCodeType getErrorCode() {
         return ;
     }

    
Sets the value of the errorCode property.

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

    
Gets the value of the severity property.

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

    
Sets the value of the severity property.

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

    
Gets the value of the locationID property.

Returns:
possible object is
    public Object getLocationID() {
        return ;
    }

    
Sets the value of the locationID property.

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

    
Gets the value of the locationPath property.

Returns:
possible object is
    public String getLocationPath() {
        return ;
    }

    
Sets the value of the locationPath property.

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

    
Gets the value of the message property.

Returns:
possible object is
    public String getMessage() {
        return ;
    }

    
Sets the value of the message property.

Parameters:
value allowed object is
    public void setMessage(String 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) {
        {
            ErrorCodeType theErrorCode;
            theErrorCode = this.getErrorCode();
            strategy.appendField(locatorthis"errorCode"buffertheErrorCode);
        }
        {
            SeverityType theSeverity;
            theSeverity = this.getSeverity();
            strategy.appendField(locatorthis"severity"buffertheSeverity);
        }
        {
            Object theLocationID;
            theLocationID = this.getLocationID();
            strategy.appendField(locatorthis"locationID"buffertheLocationID);
        }
        {
            String theLocationPath;
            theLocationPath = this.getLocationPath();
            strategy.appendField(locatorthis"locationPath"buffertheLocationPath);
        }
        {
            String theMessage;
            theMessage = this.getMessage();
            strategy.appendField(locatorthis"message"buffertheMessage);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof ErrorType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final ErrorType that = ((ErrorTypeobject);
        {
            ErrorCodeType lhsErrorCode;
            lhsErrorCode = this.getErrorCode();
            ErrorCodeType rhsErrorCode;
            rhsErrorCode = that.getErrorCode();
            if (!strategy.equals(LocatorUtils.property(thisLocator"errorCode"lhsErrorCode), LocatorUtils.property(thatLocator"errorCode"rhsErrorCode), lhsErrorCoderhsErrorCode)) {
                return false;
            }
        }
        {
            SeverityType lhsSeverity;
            lhsSeverity = this.getSeverity();
            SeverityType rhsSeverity;
            rhsSeverity = that.getSeverity();
            if (!strategy.equals(LocatorUtils.property(thisLocator"severity"lhsSeverity), LocatorUtils.property(thatLocator"severity"rhsSeverity), lhsSeverityrhsSeverity)) {
                return false;
            }
        }
        {
            Object lhsLocationID;
            lhsLocationID = this.getLocationID();
            Object rhsLocationID;
            rhsLocationID = that.getLocationID();
            if (!strategy.equals(LocatorUtils.property(thisLocator"locationID"lhsLocationID), LocatorUtils.property(thatLocator"locationID"rhsLocationID), lhsLocationIDrhsLocationID)) {
                return false;
            }
        }
        {
            String lhsLocationPath;
            lhsLocationPath = this.getLocationPath();
            String rhsLocationPath;
            rhsLocationPath = that.getLocationPath();
            if (!strategy.equals(LocatorUtils.property(thisLocator"locationPath"lhsLocationPath), LocatorUtils.property(thatLocator"locationPath"rhsLocationPath), lhsLocationPathrhsLocationPath)) {
                return false;
            }
        }
        {
            String lhsMessage;
            lhsMessage = this.getMessage();
            String rhsMessage;
            rhsMessage = that.getMessage();
            if (!strategy.equals(LocatorUtils.property(thisLocator"message"lhsMessage), LocatorUtils.property(thatLocator"message"rhsMessage), lhsMessagerhsMessage)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            ErrorCodeType theErrorCode;
            theErrorCode = this.getErrorCode();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"errorCode"theErrorCode), currentHashCodetheErrorCode);
        }
        {
            SeverityType theSeverity;
            theSeverity = this.getSeverity();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"severity"theSeverity), currentHashCodetheSeverity);
        }
        {
            Object theLocationID;
            theLocationID = this.getLocationID();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"locationID"theLocationID), currentHashCodetheLocationID);
        }
        {
            String theLocationPath;
            theLocationPath = this.getLocationPath();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"locationPath"theLocationPath), currentHashCodetheLocationPath);
        }
        {
            String theMessage;
            theMessage = this.getMessage();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"message"theMessage), currentHashCodetheMessage);
        }
        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 ErrorType) {
            final ErrorType copy = ((ErrorTypedraftCopy);
            if (this.!= null) {
                ErrorCodeType sourceErrorCode;
                sourceErrorCode = this.getErrorCode();
                ErrorCodeType copyErrorCode = ((ErrorCodeTypestrategy.copy(LocatorUtils.property(locator"errorCode"sourceErrorCode), sourceErrorCode));
                copy.setErrorCode(copyErrorCode);
            } else {
                copy.errorCode = null;
            }
            if (this.!= null) {
                SeverityType sourceSeverity;
                sourceSeverity = this.getSeverity();
                SeverityType copySeverity = ((SeverityTypestrategy.copy(LocatorUtils.property(locator"severity"sourceSeverity), sourceSeverity));
                copy.setSeverity(copySeverity);
            } else {
                copy.severity = null;
            }
            if (this.!= null) {
                Object sourceLocationID;
                sourceLocationID = this.getLocationID();
                Object copyLocationID = ((Objectstrategy.copy(LocatorUtils.property(locator"locationID"sourceLocationID), sourceLocationID));
                copy.setLocationID(copyLocationID);
            } else {
                copy.locationID = null;
            }
            if (this.!= null) {
                String sourceLocationPath;
                sourceLocationPath = this.getLocationPath();
                String copyLocationPath = ((Stringstrategy.copy(LocatorUtils.property(locator"locationPath"sourceLocationPath), sourceLocationPath));
                copy.setLocationPath(copyLocationPath);
            } else {
                copy.locationPath = null;
            }
            if (this.!= null) {
                String sourceMessage;
                sourceMessage = this.getMessage();
                String copyMessage = ((Stringstrategy.copy(LocatorUtils.property(locator"message"sourceMessage), sourceMessage));
                copy.setMessage(copyMessage);
            } else {
                copy.message = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new ErrorType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof ErrorType) {
            final ErrorType target = this;
            final ErrorType leftObject = ((ErrorTypeleft);
            final ErrorType rightObject = ((ErrorTyperight);
            {
                ErrorCodeType lhsErrorCode;
                lhsErrorCode = leftObject.getErrorCode();
                ErrorCodeType rhsErrorCode;
                rhsErrorCode = rightObject.getErrorCode();
                target.setErrorCode(((ErrorCodeTypestrategy.merge(LocatorUtils.property(leftLocator"errorCode"lhsErrorCode), LocatorUtils.property(rightLocator"errorCode"rhsErrorCode), lhsErrorCoderhsErrorCode)));
            }
            {
                SeverityType lhsSeverity;
                lhsSeverity = leftObject.getSeverity();
                SeverityType rhsSeverity;
                rhsSeverity = rightObject.getSeverity();
                target.setSeverity(((SeverityTypestrategy.merge(LocatorUtils.property(leftLocator"severity"lhsSeverity), LocatorUtils.property(rightLocator"severity"rhsSeverity), lhsSeverityrhsSeverity)));
            }
            {
                Object lhsLocationID;
                lhsLocationID = leftObject.getLocationID();
                Object rhsLocationID;
                rhsLocationID = rightObject.getLocationID();
                target.setLocationID(((Objectstrategy.merge(LocatorUtils.property(leftLocator"locationID"lhsLocationID), LocatorUtils.property(rightLocator"locationID"rhsLocationID), lhsLocationIDrhsLocationID)));
            }
            {
                String lhsLocationPath;
                lhsLocationPath = leftObject.getLocationPath();
                String rhsLocationPath;
                rhsLocationPath = rightObject.getLocationPath();
                target.setLocationPath(((Stringstrategy.merge(LocatorUtils.property(leftLocator"locationPath"lhsLocationPath), LocatorUtils.property(rightLocator"locationPath"rhsLocationPath), lhsLocationPathrhsLocationPath)));
            }
            {
                String lhsMessage;
                lhsMessage = leftObject.getMessage();
                String rhsMessage;
                rhsMessage = rightObject.getMessage();
                target.setMessage(((Stringstrategy.merge(LocatorUtils.property(leftLocator"message"lhsMessage), LocatorUtils.property(rightLocator"message"rhsMessage), lhsMessagerhsMessage)));
            }
        }
    }
New to GrepCode? Check out our FAQ X