34 lines
844 B
Java
34 lines
844 B
Java
|
package org.gcube.vremanagement.vremodeler.impl.util;
|
||
|
|
||
|
import java.util.Arrays;
|
||
|
import java.util.List;
|
||
|
|
||
|
public class MFRelationNative implements Listable{
|
||
|
|
||
|
private String metaCollectionID;
|
||
|
private String metaFormatID;
|
||
|
|
||
|
|
||
|
public MFRelationNative(String collectionId, String metaFormatId){
|
||
|
this.metaCollectionID= collectionId;
|
||
|
this.metaFormatID= metaFormatId;
|
||
|
}
|
||
|
|
||
|
public List<String> getAsStringList(){
|
||
|
return Arrays.asList(new String[]{this.metaCollectionID, this.metaFormatID});
|
||
|
}
|
||
|
|
||
|
public String getMetadataCollectionId(){
|
||
|
return this.metaCollectionID;
|
||
|
}
|
||
|
|
||
|
public String getMetadataFormatId(){
|
||
|
return this.metaFormatID;
|
||
|
}
|
||
|
|
||
|
public boolean equals(Object o){
|
||
|
MFRelationNative mf= (MFRelationNative) o;
|
||
|
return (this.metaCollectionID==mf.getMetadataCollectionId()) && (this.metaFormatID==mf.getMetadataFormatId());
|
||
|
}
|
||
|
}
|