renamed type as "metadatatype" in order to avoid clashing

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/gcubedatacatalogue-metadata-discovery@146289 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2017-03-23 11:47:14 +00:00
parent 4f998f2c72
commit 65b1fae2b2
1 changed files with 27 additions and 2 deletions

View File

@ -43,6 +43,9 @@ public class MetadataFormat implements Serializable{
@XmlElement(name = "metadatafield")
private List<MetadataField> metadataFields;
@XmlElement(name = "metadatatype", required=true)
private String metadataType = "";
@XmlTransient
private String metadataSource = null;
@ -57,6 +60,28 @@ public class MetadataFormat implements Serializable{
return metadataFields;
}
/**
* Gets the metadata type.
*
* @return the metadataType
*/
public String getMetadataType() {
return metadataType;
}
/**
* Sets the metadata type.
*
* @param metadataType the new metadata type
*/
public void setMetadataType(String metadataType) {
this.metadataType = metadataType;
}
/**
@ -142,8 +167,6 @@ public class MetadataFormat implements Serializable{
this.metadataCategories.add(metadataCategory);
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@ -155,6 +178,8 @@ public class MetadataFormat implements Serializable{
builder.append(metadataCategories);
builder.append(", metadataFields=");
builder.append(metadataFields);
builder.append(", metadataType=");
builder.append(metadataType);
builder.append(", metadataSource=");
builder.append(metadataSource);
builder.append("]");