Validation.java
/*
* Copyright (C) 2017 Red Hat, Inc.
*
* 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 io.atlasmap.v2;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonRootName;
@JsonRootName("Validation")
public class Validation implements Serializable {
private static final long serialVersionUID = 1L;
protected String message;
@Deprecated
protected String id;
protected String docId;
protected String docName;
protected ValidationScope scope;
protected ValidationStatus status;
/**
* 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;
}
/**
* Gets the value of the id property.
* @deprecated Use {@link #getDocId()} instead
*
* @return
* possible object is
* {@link String }
*
*/
@Deprecated
public String getId() {
return docId != null ? docId : id;
}
/**
* Sets the value of the id property.
* @deprecated Use {@link #setDocId(String)} instead
*
* @param value
* allowed object is
* {@link String }
*
*/
@Deprecated
public void setId(String value) {
this.id = value;
this.docId = value;
}
/**
* Gets the value of the docId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocId() {
return docId != null ? docId : id;
}
/**
* Sets the value of the docId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocId(String value) {
this.docId = value;
this.id = value;
}
/**
* Gets the value of the docName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocName() {
return docName;
}
/**
* Sets the value of the docName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocName(String value) {
this.docName = value;
}
/**
* Gets the value of the scope property.
*
* @return
* possible object is
* {@link ValidationScope }
*
*/
public ValidationScope getScope() {
return scope;
}
/**
* Sets the value of the scope property.
*
* @param value
* allowed object is
* {@link ValidationScope }
*
*/
public void setScope(ValidationScope value) {
this.scope = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link ValidationStatus }
*
*/
public ValidationStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link ValidationStatus }
*
*/
public void setStatus(ValidationStatus value) {
this.status = value;
}
}