2008-12-04 02:13:34 +01:00
|
|
|
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;
|
2009-02-10 19:54:48 +01:00
|
|
|
return (this.metaCollectionID.compareTo(mf.getMetadataCollectionId())==0) && (this.metaFormatID.compareTo(mf.getMetadataFormatId())==0);
|
2008-12-04 02:13:34 +01:00
|
|
|
}
|
|
|
|
}
|