
com.exactpro.sf.testwebgui.restapi.xml.XmlImportError Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright 2009-2019 Exactpro (Exactpro Systems Limited)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package com.exactpro.sf.testwebgui.restapi.xml;
import java.io.Serializable;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "error")
public class XmlImportError implements Serializable {
private static final long serialVersionUID = 2956274237637439343L;
private long lineNumber;
private String message;
private final Set cause = new HashSet<>();
public XmlImportError() {
}
public XmlImportError(long lineNumber, String message) {
this.lineNumber = lineNumber;
this.message = message;
}
public long getLineNumber() {
return lineNumber;
}
public void setLineNumber(long lineNumber) {
this.lineNumber = lineNumber;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Set getCause() {
return Collections.unmodifiableSet(cause);
}
public void addCause(XmlImportError error) {
cause.add(error);
}
public void addCause(Collection errors) {
cause.addAll(errors);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy