1 23 24 package org.objectweb.jorm.mapper.fos.metainfo; 25 26 import org.objectweb.jorm.metainfo.lib.BasicMappingStructure; 27 import org.objectweb.jorm.metainfo.api.PrimitiveElementMapping; 28 import org.objectweb.jorm.metainfo.api.MetaObject; 29 import org.objectweb.jorm.metainfo.api.TypedElement; 30 31 34 public class FosPrimitiveElementMapping extends BasicMappingStructure 35 implements PrimitiveElementMapping, Comparable { 36 41 public FosPrimitiveElementMapping(MetaObject parent, MetaObject linkedMO) { 42 super(parent, linkedMO); 43 } 44 45 public int compareTo(Object o) { 46 return ((TypedElement) getLinkedMO()).getName().compareTo(((TypedElement) ((FosPrimitiveElementMapping) o).getLinkedMO()).getName()); 47 } 48 } 49 | Popular Tags |