You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.2 KiB
Java
75 lines
1.2 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.datacatalogue.metadatadiscovery;
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
|
|
/**
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* May 27, 2016
|
|
*/
|
|
@XmlRootElement(name = "metadatavalidator")
|
|
@XmlAccessorType (XmlAccessType.FIELD)
|
|
public class MetadataValidator {
|
|
|
|
private String regularExpression;
|
|
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public MetadataValidator() {
|
|
|
|
super();
|
|
}
|
|
|
|
|
|
/**
|
|
* @param regularExpression
|
|
*/
|
|
public MetadataValidator(String regularExpression) {
|
|
|
|
super();
|
|
this.regularExpression = regularExpression;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return the regularExpression
|
|
*/
|
|
public String getRegularExpression() {
|
|
|
|
return regularExpression;
|
|
}
|
|
|
|
|
|
/**
|
|
* @param regularExpression the regularExpression to set
|
|
*/
|
|
public void setRegularExpression(String regularExpression) {
|
|
|
|
this.regularExpression = regularExpression;
|
|
}
|
|
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("MetadataValidator [regularExpression=");
|
|
builder.append(regularExpression);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
|
|
}
|