vre-modeler/src/org/gcube/vremanagement/vremodeler/impl/util/MFRelationNative.java

34 lines
844 B
Java
Raw Normal View History

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());
}
}