public static EnumerationFactory getObject(String image) { // Ada'Value EnumerationFactory found; // Linear search seems good enough because there presumably // will not be too many literals. for (int i = 0; i < allObjects.size(); i++) { found = (EnumerationFactory) allObjects.elementAt(i); if (found.toString().equals(image)) { return found; } } return null; }
public boolean ge(EnumerationFactory e) { // ">=" return this.getPos() >= e.getPos(); }
public boolean le(EnumerationFactory e) { // "<=" return this.getPos() <= e.getPos(); }
public boolean gt(EnumerationFactory e) { // ">" return this.getPos() > e.getPos(); }
/** * Order relations Object.op (OtherObject) representing the relation Object op OtherObject. * * @param e the right operand */ public boolean lt(EnumerationFactory e) { // "<" return this.getPos() < e.getPos(); }