public int getEntityType (String ename) { Object entity[] = (Object[]) entityInfo.get (ename); if (entity == null) { return ENTITY_UNDECLARED; } else { return ((Integer) entity [0]).intValue (); } }
public int getEntityType(String ename) { EntityInfo entity = (EntityInfo) entityInfo.get(ename); return (entity == null) ?  ENTITY_UNDECLARED : entity.type; }
    public int getEntityType (String ename)    {	Object entity[] = (Object[]) entityInfo.get (ename);	if (entity == null) {	    return ENTITY_UNDECLARED;	} else {	    return ((Integer) entity [0]).intValue ();	}    }