/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2011, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.ols.xml.v121; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlIDREF; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * Defines the characteristics of a processing error. * * <p>Java class for ErrorType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ErrorType") public class ErrorType { @XmlAttribute(required = true) private ErrorCodeType errorCode; @XmlAttribute private SeverityType severity; @XmlAttribute @XmlIDREF @XmlSchemaType(name = "IDREF") private Object locationID; @XmlAttribute private String locationPath; @XmlAttribute private String message; /** * Gets the value of the errorCode property. * * @return * possible object is * {@link ErrorCodeType } * */ public ErrorCodeType getErrorCode() { return errorCode; } /** * Sets the value of the errorCode property. * * @param value * allowed object is * {@link ErrorCodeType } * */ public void setErrorCode(ErrorCodeType value) { this.errorCode = value; } /** * Gets the value of the severity property. * * @return * possible object is * {@link SeverityType } * */ public SeverityType getSeverity() { if (severity == null) { return SeverityType.WARNING; } else { return severity; } } /** * Sets the value of the severity property. * * @param value * allowed object is * {@link SeverityType } * */ public void setSeverity(SeverityType value) { this.severity = value; } /** * Gets the value of the locationID property. * * @return * possible object is * {@link Object } * */ public Object getLocationID() { return locationID; } /** * Sets the value of the locationID property. * * @param value * allowed object is * {@link Object } * */ public void setLocationID(Object value) { this.locationID = value; } /** * Gets the value of the locationPath property. * * @return * possible object is * {@link String } * */ public String getLocationPath() { return locationPath; } /** * Sets the value of the locationPath property. * * @param value * allowed object is * {@link String } * */ public void setLocationPath(String value) { this.locationPath = value; } /** * Gets the value of the message property. * * @return * possible object is * {@link String } * */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value * allowed object is * {@link String } * */ public void setMessage(String value) { this.message = value; } }